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

Function expand_base_dir

repository.c:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static void expand_base_dir(char **out, const char *in,
102 const char *base_dir, const char *def_in)
103{
104 free(*out);
105 if (in)
106 *out = xstrdup(in);
107 else
108 *out = xstrfmt("%s/%s", base_dir, def_in);
109}
110
111const char *repo_get_git_dir(struct repository *repo)
112{

Callers 1

repo_set_gitdirFunction · 0.85

Calls 2

xstrdupFunction · 0.85
xstrfmtFunction · 0.85

Tested by

no test coverage detected