From cd8888452cd0e09c9efdc22da729023ae255b54b Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Sat, 31 Oct 2020 13:46:08 +0100 Subject: object: allow clear_commit_marks_all to handle any repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- object.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'object.h') diff --git a/object.h b/object.h index 20b18805f0..59daadce21 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 */ -- cgit v1.3