for_each_*_object: move declarations to object-store.h
[gitweb.git] / resolve-undo.c
index fc5b3b83d9a08e9deed55ee15520387f147da626..c30ae5cf49aab6a3a88060740ffc679ad940c2aa 100644 (file)
@@ -146,7 +146,9 @@ int unmerge_index_entry_at(struct index_state *istate, int pos)
                struct cache_entry *nce;
                if (!ru->mode[i])
                        continue;
-               nce = make_cache_entry(ru->mode[i], ru->oid[i].hash,
+               nce = make_cache_entry(istate,
+                                      ru->mode[i],
+                                      &ru->oid[i],
                                       name, i + 1, 0);
                if (matched)
                        nce->ce_flags |= CE_MATCHED;