Commit 9bd5a99fea4757e5a17412b81eb5a9223437ebdc

Vicent Martí 2012-05-16T10:22:49

Merge pull request #700 from cholin/revwalk_reset really reset walker with git_revwalk_reset

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/revwalk.c b/src/revwalk.c
index 1b53978..d0a5120 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -838,5 +838,8 @@ void git_revwalk_reset(git_revwalk *walk)
 	commit_list_free(&walk->iterator_rand);
 	commit_list_free(&walk->iterator_reverse);
 	walk->walking = 0;
+
+	walk->one = NULL;
+	git_vector_clear(&walk->twos);
 }