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

Function is_inside_git_dir

setup.c:472–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472int is_inside_git_dir(struct repository *repo)
473{
474 struct strbuf buf = STRBUF_INIT;
475 int ret = is_inside_dir(strbuf_realpath(&buf, repo_get_git_dir(repo), 1));
476 strbuf_release(&buf);
477 return ret;
478}
479
480int is_inside_work_tree(struct repository *repo)
481{

Callers 2

verify_non_filenameFunction · 0.85
cmd_rev_parseFunction · 0.85

Calls 4

is_inside_dirFunction · 0.85
strbuf_realpathFunction · 0.85
repo_get_git_dirFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected