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

Function strbuf_add_real_path

abspath.c:318–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void strbuf_add_real_path(struct strbuf *sb, const char *path)
319{
320 if (sb->len) {
321 struct strbuf resolved = STRBUF_INIT;
322 strbuf_realpath(&resolved, path, 1);
323 strbuf_addbuf(sb, &resolved);
324 strbuf_release(&resolved);
325 } else
326 strbuf_realpath(sb, path, 1);
327}

Callers 5

get_common_dir_noenvFunction · 0.85
interpolate_pathFunction · 0.85
get_main_worktreeFunction · 0.85
is_main_worktree_pathFunction · 0.85
files_fsck_refs_contentFunction · 0.85

Calls 3

strbuf_realpathFunction · 0.85
strbuf_addbufFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected