summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-10-08 17:17:31 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-10-08 17:17:31 +0200
commitd6afda62d94d7bb29d864cf1c86648839ef60b2d (patch)
tree478a6bbf10a1a7ce77704bd2b32c7de8fd0dc00b
parent9b5d6cea4aba38a58233a93fde2d0ffd6945f171 (diff)
downloadlibgit2-cmn/revwalk-merge-base.tar.gz
revwalk: clear first-parent flag on resetcmn/revwalk-merge-base
This should have been included when implementing the feature but was missed.
-rw-r--r--src/revwalk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/revwalk.c b/src/revwalk.c
index 1bf9fbe5c..4dca7599a 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -621,6 +621,7 @@ void git_revwalk_reset(git_revwalk *walk)
git_commit_list_free(&walk->iterator_rand);
git_commit_list_free(&walk->iterator_reverse);
git_commit_list_free(&walk->user_input);
+ walk->first_parent = 0;
walk->walking = 0;
walk->did_push = walk->did_hide = 0;
}