Commit 0b86fdf9 by Nico von Geyso

really reset walker with git_revwalk_reset

From the description  of git_revwalk_reset in revwalk.h the function should
clear all pushed and hidden commits, and leave the walker in a blank state (just like at creation).
Apparently everything gets reseted appart of pushed commits (walk->one and walk->twos)

This fix should reset the walker properly.
parent b72969e0
...@@ -838,5 +838,8 @@ void git_revwalk_reset(git_revwalk *walk) ...@@ -838,5 +838,8 @@ void git_revwalk_reset(git_revwalk *walk)
commit_list_free(&walk->iterator_rand); commit_list_free(&walk->iterator_rand);
commit_list_free(&walk->iterator_reverse); commit_list_free(&walk->iterator_reverse);
walk->walking = 0; walk->walking = 0;
walk->one = NULL;
git_vector_clear(&walk->twos);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment