aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rev-list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rev-list.c b/rev-list.c
index 373549e59..b5de0759f 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));
+ }
}
}