author | Junio C Hamano <junkio@cox.net> | |
Mon, 3 Jul 2006 10:14:32 +0000 (03:14 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 3 Jul 2006 10:16:52 +0000 (03:16 -0700) |
This is to pull in the object-hash clean-up from the master branch.
1 | 2 | |||
---|---|---|---|---|
object.c | patch | | diff1 | | diff2 | | blob | history |
object.h | patch | | diff1 | | diff2 | | blob | history |
revision.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc object.c
index 9caba4fac857d82e12416b3d579aa4fe79722e1f,37277f94384fff1320381a370dd4d6c91a4ded2c..1c3675971599c1edfbc5752e2a56dce1a2322e7c
+++ b/object.c
objects[nr].name = name;
array->nr = ++nr;
}
- for (i = 0; i < obj_allocs; i++)
- if (objs[i])
- objs[i]->flags &= ~mark;
+
+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;
+}
diff --cc object.h
Simple merge
diff --cc revision.c
Simple merge