From 4ad315fc99d906364c9a5d75a319752cf4056ae5 Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Mon, 25 Dec 2017 18:44:58 +0100 Subject: object: add clear_commit_marks_all() Add a function for clearing the commit marks of all in-core commit objects. It's similar to clear_object_flags(), but more precise, since it leaves the other object types alone. It still has to iterate through them, though. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- object.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'object.h') diff --git a/object.h b/object.h index df8abe96f7..1111f64dd9 100644 --- a/object.h +++ b/object.h @@ -148,4 +148,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. + */ +extern void clear_commit_marks_all(unsigned int flags); + #endif /* OBJECT_H */ -- cgit v1.3