Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'gs/retire-mru'
[gitweb.git]
/
object.c
diff --git
a/object.c
b/object.c
index 4c222d6260ab8b3b1a44730a10649bb1c77ef043..9e6f9ff20b03f800edae8ec7adc26e30313a5616 100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-434,3
+434,14
@@
void clear_object_flags(unsigned flags)
obj->flags &= ~flags;
}
}
+
+void clear_commit_marks_all(unsigned int flags)
+{
+ int i;
+
+ for (i = 0; i < obj_hash_size; i++) {
+ struct object *obj = obj_hash[i];
+ if (obj && obj->type == OBJ_COMMIT)
+ obj->flags &= ~flags;
+ }
+}