Hi, On Wed, 7 Jan 2009, Christian Couder wrote: > diff --git a/replace_object.c b/replace_object.c > new file mode 100644 > index 0000000..b50890d > --- /dev/null > +++ b/replace_object.c > @@ -0,0 +1,102 @@ > +#include "cache.h" > +#include "refs.h" > + > +static struct replace_object { > + unsigned char sha1[2][20]; > +} **replace_object; > + > +static int replace_object_alloc, replace_object_nr; > + > +static int replace_object_pos(const unsigned char *sha1) > +{ > + int lo, hi; > + lo = 0; > + hi = replace_object_nr; > + while (lo < hi) { > [...] I suspect that this sorted list should be a hashmap. Ciao, Dscho -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html