MCPcopy Create free account
hub / github.com/git/git / repo_set_worktree

Function repo_set_worktree

repository.c:252–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void repo_set_worktree(struct repository *repo, const char *path)
253{
254 repo->worktree = real_pathdup(path, 1);
255
256 trace2_def_repo(repo);
257}
258
259static int read_repository_format_from_commondir(struct repository_format *format,
260 const char *commondir)

Callers 2

set_git_work_treeFunction · 0.85
repo_initFunction · 0.85

Calls 1

real_pathdupFunction · 0.85

Tested by

no test coverage detected