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

Function repo_common_pathv

path.c:634–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634static void repo_common_pathv(const struct repository *repo,
635 struct strbuf *sb,
636 const char *fmt,
637 va_list args)
638{
639 strbuf_addstr(sb, repo->commondir);
640 if (sb->len && !is_dir_sep(sb->buf[sb->len - 1]))
641 strbuf_addch(sb, '/');
642 strbuf_vaddf(sb, fmt, args);
643 strbuf_cleanup_path(sb);
644}
645
646char *repo_common_path(const struct repository *repo,
647 const char *fmt, ...)

Callers 3

repo_common_pathFunction · 0.85
repo_common_path_appendFunction · 0.85
repo_common_path_replaceFunction · 0.85

Calls 4

strbuf_addstrFunction · 0.85
strbuf_addchFunction · 0.85
strbuf_vaddfFunction · 0.85
strbuf_cleanup_pathFunction · 0.85

Tested by

no test coverage detected