summaryrefslogtreecommitdiff
path: root/object.h
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 /object.h
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 'object.h')
-rw-r--r--object.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/object.h b/object.h
index 20b1880..59daadc 100644
--- a/object.h
+++ b/object.h
@@ -191,8 +191,9 @@ void object_array_clear(struct object_array *array);
void clear_object_flags(unsigned flags);
/*
- * Clear the specified object flags from all in-core commit objects.
+ * Clear the specified object flags from all in-core commit objects from
+ * the specified repository.
*/
-void clear_commit_marks_all(unsigned int flags);
+void repo_clear_commit_marks(struct repository *r, unsigned int flags);
#endif /* OBJECT_H */