diff options
author | Adam Simpkins <adam@adamsimpkins.net> | 2008-05-04 03:36:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-05 17:38:22 -0700 |
commit | 885cf808998c4e6d685c669a44f02b37f6965fd9 (patch) | |
tree | 793ae0c47cb768263b7e44f437fc9410c7e6f44d /builtin-rev-list.c | |
parent | c697ad143ba1ff58b29e7efe149d244d4b7010a5 (diff) | |
download | git-885cf808998c4e6d685c669a44f02b37f6965fd9.tar.gz git-885cf808998c4e6d685c669a44f02b37f6965fd9.tar.xz |
revision API: split parent rewriting and parent printing options
This change allows parent rewriting to be performed without causing
the log and rev-list commands to print the parents.
Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r-- | builtin-rev-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c index edc0bd35b..476a870c7 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -77,7 +77,7 @@ static void show_commit(struct commit *commit) stdout); else fputs(sha1_to_hex(commit->object.sha1), stdout); - if (revs.parents) { + if (revs.print_parents) { struct commit_list *parents = commit->parents; while (parents) { printf(" %s", sha1_to_hex(parents->item->object.sha1)); |