@matheusbsbs / matheus-bagliano / commits / eb38cc689e
Fork 0

rev-list --objects-edge: remove duplicated edge commit output.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Feb 23, 2006 at 23:44 UTC eb38cc689e84a8fd01c1856e889fe8d3b4f1bfb4
1 file changed +3 -1
rev-list.c
+3 -1
@@ -440,8 +440,10 @@ static void mark_edge_parents_uninteresting(struct commit *commit)
440 if (!(parent->object.flags & UNINTERESTING))
441 continue;
442 mark_tree_uninteresting(parent->tree);
443 - if (edge_hint)
443 + if (edge_hint && !(parent->object.flags & SHOWN)) {
444 + parent->object.flags |= SHOWN;
445 printf("-%s\n", sha1_to_hex(parent->object.sha1));
446 + }
447 }
448 }
449