summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-20 16:13:24 -0800
committerJunio C Hamano <gitster@pobox.com>2008-02-20 16:13:24 -0800
commit428ae2eff0f7b68f8bbb1fd462aca5112614427d (patch)
treef8c71a2f98f37ac28e672437236af6341ba0e611 /builtin-rev-list.c
parent356eff534cfb181cb65f92240692ff4306e3212a (diff)
parent3131b713013f06285cad3ffdcc61f417ac4ba158 (diff)
downloadgit-428ae2eff0f7b68f8bbb1fd462aca5112614427d.tar.gz
Merge branch 'lt/revision-walker'
* lt/revision-walker: Add "--show-all" revision walker flag for debugging
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 9426081dae..6f7d5f8214 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -60,6 +60,8 @@ static void show_commit(struct commit *commit)
fputs(header_prefix, stdout);
if (commit->object.flags & BOUNDARY)
putchar('-');
+ else if (commit->object.flags & UNINTERESTING)
+ putchar('^');
else if (revs.left_right) {
if (commit->object.flags & SYMMETRIC_LEFT)
putchar('<');
@@ -84,7 +86,7 @@ static void show_commit(struct commit *commit)
else
putchar('\n');
- if (revs.verbose_header) {
+ if (revs.verbose_header && commit->buffer) {
struct strbuf buf;
strbuf_init(&buf, 0);
pretty_print_commit(revs.commit_format, commit,