summaryrefslogtreecommitdiff
path: root/src/revwalk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revwalk.c')
-rw-r--r--src/revwalk.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/revwalk.c b/src/revwalk.c
index 4575d8b63..60ea5e87d 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -144,6 +144,18 @@ git_commit *gitrp_next(git_revpool *pool)
void gitrp_reset(git_revpool *pool)
{
+ git_commit *commit;
+ git_revpool_tableit it;
+
+ git_revpool_tableit_init(pool->commits, &it);
+
+ while ((commit = (git_commit *)git_revpool_tableit_next(&it)) != NULL)
+ {
+ commit->seen = 0;
+ commit->topo_delay = 0;
+ commit->in_degree = 0;
+ }
+
git_commit_list_clear(&pool->iterator, 0);
pool->walking = 0;
}