diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-03-22 21:38:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-22 21:38:50 -0700 |
commit | aeb2aaa7712f7af8237d5bceb725a7db8c2d4620 (patch) | |
tree | 179be08e021c12d073818ca78bc63846b10da8a5 /graph.c | |
parent | 281ee1d0c2c3f73bdc9012a5ac52feff97f72acd (diff) | |
parent | b1b47554ae889ca76b66349819c9b95a8be5f646 (diff) | |
download | git-aeb2aaa7712f7af8237d5bceb725a7db8c2d4620.tar.gz |
Merge branch 'mg/rev-list-one-side-only'
* mg/rev-list-one-side-only:
git-log: put space after commit mark
t6007: test rev-list --cherry
log --cherry: a synonym
rev-list: documentation and test for --cherry-mark
revision.c: introduce --cherry-mark
rev-list/log: factor out revision mark generation
rev-list: --left/right-only are mutually exclusive
rev-list: documentation and test for --left/right-only
t6007: Make sure we test --cherry-pick
revlist.c: introduce --left/right-only for unsymmetric picking
Diffstat (limited to 'graph.c')
-rw-r--r-- | graph.c | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -798,22 +798,9 @@ static void graph_output_commit_char(struct git_graph *graph, struct strbuf *sb) } /* - * If revs->left_right is set, print '<' for commits that - * come from the left side, and '>' for commits from the right - * side. + * get_revision_mark() handles all other cases without assert() */ - if (graph->revs && graph->revs->left_right) { - if (graph->commit->object.flags & SYMMETRIC_LEFT) - strbuf_addch(sb, '<'); - else - strbuf_addch(sb, '>'); - return; - } - - /* - * Print '*' in all other cases - */ - strbuf_addch(sb, '*'); + strbuf_addstr(sb, get_revision_mark(graph->revs, graph->commit)); } /* |