Merge branch 'kk/maint-gitweb-missing-owner'
[gitweb.git] / object.c
index 0498b18d451b2335d21e2db3edc0ce7838aaa50e..49a864ce54e6ca0f21ad86aab27a422570d1bcec 100644 (file)
--- a/object.c
+++ b/object.c
@@ -286,3 +286,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;
+       }
+}