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

Function repo_submodule_path_replace

path.c:618–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618const char *repo_submodule_path_replace(struct repository *repo,
619 struct strbuf *buf,
620 const char *path,
621 const char *fmt, ...)
622{
623 int err;
624 va_list args;
625 strbuf_reset(buf);
626 va_start(args, fmt);
627 err = do_submodule_path(repo, buf, path, fmt, args);
628 va_end(args);
629 if (err)
630 return NULL;
631 return buf->buf;
632}
633
634static void repo_common_pathv(const struct repository *repo,
635 struct strbuf *sb,

Callers

nothing calls this directly

Calls 1

do_submodule_pathFunction · 0.85

Tested by

no test coverage detected