Teach revision walking machinery to walk multiple times sequencially
[gitweb.git] / object.c
index 6b06297a5f06cc35cb266d6dd36c92df75a82de7..f84e80a955bd83a4a3de6971d106a8ac430806bc 100644 (file)
--- a/object.c
+++ b/object.c
@@ -275,3 +275,14 @@ void object_array_remove_duplicates(struct object_array *array)
                array->nr = dst;
        }
 }
+
+void clear_object_flags(unsigned flags)
+{
+       int i;
+
+       for (i=0; i < obj_hash_size; i++) {
+               struct object *obj = obj_hash[i];
+               if (obj)
+                       obj->flags &= ~flags;
+       }
+}