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

Function repo_worktree_path_replace

path.c:542–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542const char *repo_worktree_path_replace(const struct repository *repo,
543 struct strbuf *sb,
544 const char *fmt, ...)
545{
546 va_list args;
547
548 strbuf_reset(sb);
549 if (!repo->worktree)
550 return NULL;
551
552 va_start(args, fmt);
553 do_worktree_path(repo, sb, fmt, args);
554 va_end(args);
555
556 return sb->buf;
557}
558
559/* Returns 0 on success, negative on failure. */
560static int do_submodule_path(struct repository *repo,

Callers

nothing calls this directly

Calls 1

do_worktree_pathFunction · 0.85

Tested by

no test coverage detected