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

Function reparent_cb

chdir-notify.c:46–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static void reparent_cb(const char *name,
47 const char *old_cwd,
48 const char *new_cwd,
49 void *data)
50{
51 char **path = data;
52 char *tmp = *path;
53
54 if (!tmp)
55 return;
56
57 *path = reparent_relative_path(old_cwd, new_cwd, tmp);
58 free(tmp);
59
60 if (name) {
61 trace_printf_key(&trace_setup_key,
62 "setup: reparent %s to '%s'",
63 name, *path);
64 }
65}
66
67void chdir_notify_reparent(const char *name, char **path)
68{

Callers

nothing calls this directly

Calls 1

reparent_relative_pathFunction · 0.85

Tested by

no test coverage detected