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

Function repo_git_pathv

path.c:418–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418static void repo_git_pathv(struct repository *repo,
419 const struct worktree *wt, struct strbuf *buf,
420 const char *fmt, va_list args)
421{
422 int gitdir_len;
423 strbuf_worktree_gitdir(buf, repo, wt);
424 if (buf->len && !is_dir_sep(buf->buf[buf->len - 1]))
425 strbuf_addch(buf, '/');
426 gitdir_len = buf->len;
427 strbuf_vaddf(buf, fmt, args);
428 if (!wt)
429 adjust_git_path(repo, buf, gitdir_len);
430 strbuf_cleanup_path(buf);
431}
432
433char *repo_git_path(struct repository *repo,
434 const char *fmt, ...)

Callers 4

repo_git_pathFunction · 0.85
repo_git_path_appendFunction · 0.85
repo_git_path_replaceFunction · 0.85
worktree_git_pathFunction · 0.85

Calls 5

strbuf_worktree_gitdirFunction · 0.85
strbuf_addchFunction · 0.85
strbuf_vaddfFunction · 0.85
adjust_git_pathFunction · 0.85
strbuf_cleanup_pathFunction · 0.85

Tested by

no test coverage detected