summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-05-25 14:05:11 -0700
committerJunio C Hamano <gitster@pobox.com>2008-05-25 14:05:11 -0700
commit450c5aed06ecf60084f993f688b549ffa377b64e (patch)
tree5c4bdf5c4945f56567b3b022664635e2ca1ede92 /builtin-rev-list.c
parentcc26efb3134b28701fe65ac488af2c6abf59b21d (diff)
parent4603ec0f960e582a7da7241563d3f235ad7f0d3e (diff)
downloadgit-450c5aed06ecf60084f993f688b549ffa377b64e.tar.gz
Merge branch 'as/graph'
* as/graph: get_revision(): honor the topo_order flag for boundary commits Fix output of "git log --graph --boundary" log --graph --left-right: show left/right information in place of '*' graph API: don't print branch lines for uninteresting merge parents graph API: fix graph mis-alignment after uninteresting commits
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 54d55cc3a3..b474527402 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -65,15 +65,18 @@ static void show_commit(struct commit *commit)
printf("%lu ", commit->date);
if (header_prefix)
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('<');
- else
- putchar('>');
+
+ if (!revs.graph) {
+ 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('<');
+ else
+ putchar('>');
+ }
}
if (revs.abbrev_commit && revs.abbrev)
fputs(find_unique_abbrev(commit->object.sha1, revs.abbrev),