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

Function is_bare_repository

environment.c:131–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131int is_bare_repository(void)
132{
133 /* if core.bare is not 'false', let's see if there is a work tree */
134 return is_bare_repository_cfg && !repo_get_work_tree(the_repository);
135}
136
137int have_git_dir(void)
138{

Callers 15

create_default_filesFunction · 0.85
transport_pushFunction · 0.85
read_mailmapFunction · 0.85
get_main_worktreeFunction · 0.85
git_attr_set_directionFunction · 0.85
read_attrFunction · 0.85
should_write_logFunction · 0.85
log_ref_setupFunction · 0.85
set_headFunction · 0.85
cmd_blameFunction · 0.85
cmd_resetFunction · 0.85
cmd_check_attrFunction · 0.85

Calls 1

repo_get_work_treeFunction · 0.85

Tested by

no test coverage detected