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

Function worktree_git_path

path.c:488–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488const char *worktree_git_path(const struct worktree *wt, const char *fmt, ...)
489{
490 struct strbuf *pathname = get_pathname();
491 va_list args;
492
493 if (!wt)
494 BUG("%s() called with NULL worktree", __func__);
495
496 va_start(args, fmt);
497 repo_git_pathv(wt->repo, wt, pathname, fmt, args);
498 va_end(args);
499 return pathname->buf;
500}
501
502static void do_worktree_path(const struct repository *repo,
503 struct strbuf *buf,

Callers 7

worktree_lock_reasonFunction · 0.85
get_branchFunction · 0.85
wt_status_check_rebaseFunction · 0.85
wt_status_check_bisectFunction · 0.85
validate_no_submodulesFunction · 0.85
cmd_fsckFunction · 0.85

Calls 2

get_pathnameFunction · 0.85
repo_git_pathvFunction · 0.85

Tested by

no test coverage detected