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

Function tmp_objdir_reparent

tmp-objdir.c:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static void tmp_objdir_reparent(const char *name UNUSED,
41 const char *old_cwd,
42 const char *new_cwd,
43 void *cb_data)
44{
45 struct tmp_objdir *t = cb_data;
46 char *path;
47
48 path = reparent_relative_path(old_cwd, new_cwd,
49 t->path.buf);
50 strbuf_reset(&t->path);
51 strbuf_addstr(&t->path, path);
52 free(path);
53}
54
55int tmp_objdir_destroy(struct tmp_objdir *t)
56{

Callers

nothing calls this directly

Calls 2

reparent_relative_pathFunction · 0.85
strbuf_addstrFunction · 0.85

Tested by

no test coverage detected