MCPcopy Index your code
hub / github.com/git/git / repo_common_path

Function repo_common_path

path.c:646–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646char *repo_common_path(const struct repository *repo,
647 const char *fmt, ...)
648{
649 struct strbuf sb = STRBUF_INIT;
650 va_list args;
651 va_start(args, fmt);
652 repo_common_pathv(repo, &sb, fmt, args);
653 va_end(args);
654 return strbuf_detach(&sb, NULL);
655}
656
657const char *repo_common_path_append(const struct repository *repo,
658 struct strbuf *sb,

Callers 7

get_worktree_git_dirFunction · 0.85
update_worktree_locationFunction · 0.85
repair_gitfileFunction · 0.85
should_prune_worktreeFunction · 0.85
lock_worktreeFunction · 0.85
unlock_worktreeFunction · 0.85

Calls 2

repo_common_pathvFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected