summaryrefslogtreecommitdiff
path: root/rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-24 07:44:15 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-24 07:44:15 (GMT)
commiteb38cc689e84a8fd01c1856e889fe8d3b4f1bfb4 (patch)
tree626f8655269a51b6b0a4d56fffc181630356c19d /rev-list.c
parentc649657501bada28794a30102d9c13cc28ca0e5e (diff)
downloadgit-eb38cc689e84a8fd01c1856e889fe8d3b4f1bfb4.zip
git-eb38cc689e84a8fd01c1856e889fe8d3b4f1bfb4.tar.gz
git-eb38cc689e84a8fd01c1856e889fe8d3b4f1bfb4.tar.bz2
rev-list --objects-edge: remove duplicated edge commit output.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c
index 373549e..b5de075 100644
--- a/rev-list.c
+++ b/rev-list.c
@@ -440,8 +440,10 @@ static void mark_edge_parents_uninteresting(struct commit *commit)
if (!(parent->object.flags & UNINTERESTING))
continue;
mark_tree_uninteresting(parent->tree);
- if (edge_hint)
+ if (edge_hint && !(parent->object.flags & SHOWN)) {
+ parent->object.flags |= SHOWN;
printf("-%s\n", sha1_to_hex(parent->object.sha1));
+ }
}
}