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

Function absolute_pathdup

abspath.c:260–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260char *absolute_pathdup(const char *path)
261{
262 struct strbuf sb = STRBUF_INIT;
263 strbuf_add_absolute_path(&sb, path);
264 return strbuf_detach(&sb, NULL);
265}
266
267char *prefix_filename(const char *pfx, const char *arg)
268{

Callers 8

is_current_worktreeFunction · 0.85
get_current_worktreeFunction · 0.85
get_repo_pathFunction · 0.85
cmd_cloneFunction · 0.85
ensure_core_worktreeFunction · 0.85
cmd_init_dbFunction · 0.85

Calls 2

strbuf_add_absolute_pathFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected