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

Function repo_worktree_path

path.c:514–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514char *repo_worktree_path(const struct repository *repo, const char *fmt, ...)
515{
516 struct strbuf path = STRBUF_INIT;
517 va_list args;
518
519 va_start(args, fmt);
520 do_worktree_path(repo, &path, fmt, args);
521 va_end(args);
522
523 return strbuf_detach(&path, NULL);
524}
525
526const char *repo_worktree_path_append(const struct repository *repo,
527 struct strbuf *sb,

Callers 1

config_from_gitmodulesFunction · 0.85

Calls 2

do_worktree_pathFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected