Commit 42835aa6b83c0c2f694cbe078b24243fe27486f2

Carlos Martín Nieto 2014-10-08T10:24:06

revwalk: clear the flags on reset These store merge-base information which is only valid for a single run.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/revwalk.c b/src/revwalk.c
index bd07d02..84034f5 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -540,6 +540,7 @@ void git_revwalk_reset(git_revwalk *walk)
 		commit->in_degree = 0;
 		commit->topo_delay = 0;
 		commit->uninteresting = 0;
+		commit->flags = 0;
 		});
 
 	git_pqueue_clear(&walk->iterator_time);