Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'master' into js/merge-base
[gitweb.git]
/
object.c
diff --git
a/object.c
b/object.c
index 37277f94384fff1320381a370dd4d6c91a4ded2c..1c3675971599c1edfbc5752e2a56dce1a2322e7c 100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-235,3
+235,12
@@
void add_object_array(struct object *obj, const char *name, struct object_array
objects[nr].name = name;
array->nr = ++nr;
}
+
+void clear_object_marks(unsigned mark)
+{
+ int i;
+
+ for (i = 0; i < obj_hash_size; i++)
+ if (obj_hash[i])
+ obj_hash[i]->flags &= ~mark;
+}