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

Function system_path

exec-cmd.c:290–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288#endif /* RUNTIME_PREFIX */
289
290char *system_path(const char *path)
291{
292 struct strbuf d = STRBUF_INIT;
293
294 if (is_absolute_path(path))
295 return xstrdup(path);
296
297 strbuf_addf(&d, "%s/%s", system_prefix(), path);
298 return strbuf_detach(&d, NULL);
299}
300
301static const char *exec_path_value;
302

Callers 10

git_system_configFunction · 0.85
get_template_dirFunction · 0.85
interpolate_pathFunction · 0.85
git_setup_gettextFunction · 0.85
git_exec_pathFunction · 0.85
print_system_pathFunction · 0.85
git_attr_system_fileFunction · 0.85
setup_man_pathFunction · 0.85
show_info_pageFunction · 0.85
get_html_page_pathFunction · 0.85

Calls 5

is_absolute_pathFunction · 0.85
xstrdupFunction · 0.85
strbuf_addfFunction · 0.85
system_prefixFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected