static int same_name(struct cache_entry *a, struct cache_entry *b)
{
int len = ce_namelen(a);
return ce_namelen(b) == len && !memcmp(a->name, b->name, len);
}
int add_cache_entry(struct cache_entry *ce, int ok_to_add)
{
int pos;
@ -379,6 +392,19 @@ int add_cache_entry(struct cache_entry *ce, int ok_to_add)
@@ -379,6 +392,19 @@ int add_cache_entry(struct cache_entry *ce, int ok_to_add)
}
pos = -pos-1;
/*
* Inserting a merged entry ("stage 0") into the index