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

Function mkpathdup

path.c:467–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467char *mkpathdup(const char *fmt, ...)
468{
469 struct strbuf sb = STRBUF_INIT;
470 va_list args;
471 va_start(args, fmt);
472 strbuf_vaddf(&sb, fmt, args);
473 va_end(args);
474 strbuf_cleanup_path(&sb);
475 return strbuf_detach(&sb, NULL);
476}
477
478const char *mkpath(const char *fmt, ...)
479{

Callers 15

do_git_config_sequenceFunction · 0.85
merge_3wayFunction · 0.85
xdg_config_home_forFunction · 0.85
xdg_cache_homeFunction · 0.85
traverse_tree_submodulesFunction · 0.85
generated_pack_installFunction · 0.85
create_one_fileFunction · 0.85
update_info_fileFunction · 0.85
update_info_packsFunction · 0.85
compute_alternate_pathFunction · 0.85
repack_local_linksFunction · 0.85

Calls 3

strbuf_vaddfFunction · 0.85
strbuf_cleanup_pathFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected