Revert 88494423 (removal of duplicate parents in the output codepath)
Now this is not needed, as we rewrite the parent list in the commit object itself. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jul 8, 2007 at 19:05 UTC
1ed84157a21a3e868228b15588e4aadfbe5a030b
1 file changed
+1
-13
builtin-rev-list.c
+1
-13
@@ -70,21 +70,9 @@ static void show_commit(struct commit *commit)
70
if (revs.parents) {
71
struct commit_list *parents = commit->parents;
72
while (parents) {
73
- struct object *o = &(parents->item->object);
73
+ printf(" %s", sha1_to_hex(parents->item->object.sha1));
74
parents = parents->next;
75
- if (o->flags & TMP_MARK)
76
- continue;
77
- printf(" %s", sha1_to_hex(o->sha1));
78
- o->flags |= TMP_MARK;
75
}
80
- /* TMP_MARK is a general purpose flag that can
81
- * be used locally, but the user should clean
82
- * things up after it is done with them.
83
- */
84
- for (parents = commit->parents;
85
- parents;
86
- parents = parents->next)
87
- parents->item->object.flags &= ~TMP_MARK;
76
}
77
if (revs.commit_format == CMIT_FMT_ONELINE)
78
putchar(' ');