summaryrefslogtreecommitdiff
path: root/bisect.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2020-10-31 12:46:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-31 17:46:34 (GMT)
commitcd8888452cd0e09c9efdc22da729023ae255b54b (patch)
treec9403e7defdf2cba012b1e52a8d9df1273229917 /bisect.c
parent69986e19ffcfb9af674ae5180689ab7bbf92ed28 (diff)
downloadgit-cd8888452cd0e09c9efdc22da729023ae255b54b.zip
git-cd8888452cd0e09c9efdc22da729023ae255b54b.tar.gz
git-cd8888452cd0e09c9efdc22da729023ae255b54b.tar.bz2
object: allow clear_commit_marks_all to handle any repo
Allow callers to specify the repository to use. Rename the function to repo_clear_commit_marks to document its new scope. No functional change intended. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bisect.c')
-rw-r--r--bisect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bisect.c b/bisect.c
index f5b1368..3b763da 100644
--- a/bisect.c
+++ b/bisect.c
@@ -1090,7 +1090,7 @@ enum bisect_error bisect_next_all(struct repository *r, const char *prefix)
nr), nr, steps_msg);
free(steps_msg);
/* Clean up objects used, as they will be reused. */
- clear_commit_marks_all(ALL_REV_FLAGS);
+ repo_clear_commit_marks(the_repository, ALL_REV_FLAGS);
return bisect_checkout(bisect_rev, no_checkout);
}