Teach revision walking machinery to walk multiple times sequencially
[git/git.git] / revision.c
index c97d834..4fbc14b 100644 (file)
@@ -2061,6 +2061,11 @@ static void set_children(struct rev_info *revs)
        }
 }
 
+void reset_revision_walk(void)
+{
+       clear_object_flags(SEEN | ADDED | SHOWN);
+}
+
 int prepare_revision_walk(struct rev_info *revs)
 {
        int nr = revs->pending.nr;