revwalk: clear the flags on reset

These store merge-base information which is only valid for a single run.
This commit is contained in:
Carlos Martín Nieto 2014-10-08 10:24:06 +02:00
parent 9f57fd6443
commit 42835aa6b8

View File

@ -540,6 +540,7 @@ void git_revwalk_reset(git_revwalk *walk)
commit->in_degree = 0; commit->in_degree = 0;
commit->topo_delay = 0; commit->topo_delay = 0;
commit->uninteresting = 0; commit->uninteresting = 0;
commit->flags = 0;
}); });
git_pqueue_clear(&walk->iterator_time); git_pqueue_clear(&walk->iterator_time);