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

Function xgetcwd

wrapper.c:658–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658char *xgetcwd(void)
659{
660 struct strbuf sb = STRBUF_INIT;
661 if (strbuf_getcwd(&sb))
662 die_errno(_("unable to get current working directory"));
663 return strbuf_detach(&sb, NULL);
664}
665
666int xsnprintf(char *dst, size_t max, const char *fmt, ...)
667{

Callers 15

setup_explicit_git_dirFunction · 0.85
is_inside_dirFunction · 0.85
handle_optionsFunction · 0.85
cmd_deleteFunction · 0.85
strbuf_add_absolute_pathFunction · 0.85
trace_repo_setupFunction · 0.85
cmd__getcwdFunction · 0.85
resolve_relative_urlFunction · 0.85
print_pathFunction · 0.85

Calls 3

strbuf_getcwdFunction · 0.85
die_errnoFunction · 0.85
strbuf_detachFunction · 0.85

Tested by 2

cmd__getcwdFunction · 0.68