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>
This commit is contained in:
committed by
Junio C Hamano
parent
69986e19ff
commit
cd8888452c
5
object.h
5
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 */
|
||||
|
||||
Reference in New Issue
Block a user