diff options
author | René Scharfe <l.s.r@web.de> | 2020-10-31 15:46:08 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-31 20:46:34 +0300 |
commit | cd8888452cd0e09c9efdc22da729023ae255b54b (patch) | |
tree | c9403e7defdf2cba012b1e52a8d9df1273229917 /builtin/gc.c | |
parent | 69986e19ffcfb9af674ae5180689ab7bbf92ed28 (diff) |
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 'builtin/gc.c')
-rw-r--r-- | builtin/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/gc.c b/builtin/gc.c index 090959350e..e7932f0480 100644 --- a/builtin/gc.c +++ b/builtin/gc.c @@ -786,7 +786,7 @@ static int should_write_commit_graph(void) result = for_each_ref(dfs_on_ref, &data); - clear_commit_marks_all(SEEN); + repo_clear_commit_marks(the_repository, SEEN); return result; } |