MCPcopy Create free account
hub / github.com/git/git / tmp_objdir_replace_primary_odb

Function tmp_objdir_replace_primary_odb

tmp-objdir.c:330–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void tmp_objdir_replace_primary_odb(struct tmp_objdir *t, int will_destroy)
331{
332 if (t->prev_source)
333 BUG("the primary object database is already replaced");
334 t->prev_source = odb_set_temporary_primary_source(t->repo->objects,
335 t->path.buf, will_destroy);
336 t->will_destroy = will_destroy;
337}

Callers 2

do_remerge_diffFunction · 0.85

Calls 1

Tested by

no test coverage detected