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

Function repo_submodule_path

path.c:587–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587char *repo_submodule_path(struct repository *repo,
588 const char *path, const char *fmt, ...)
589{
590 int err;
591 va_list args;
592 struct strbuf buf = STRBUF_INIT;
593 va_start(args, fmt);
594 err = do_submodule_path(repo, &buf, path, fmt, args);
595 va_end(args);
596 if (err) {
597 strbuf_release(&buf);
598 return NULL;
599 }
600 return strbuf_detach(&buf, NULL);
601}
602
603const char *repo_submodule_path_append(struct repository *repo,
604 struct strbuf *buf,

Callers 2

submodule_uses_worktreesFunction · 0.85
clone_submoduleFunction · 0.85

Calls 3

do_submodule_pathFunction · 0.85
strbuf_releaseFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected