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

Function repo_get_git_dir

repository.c:111–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111const char *repo_get_git_dir(struct repository *repo)
112{
113 if (!repo->gitdir)
114 BUG("repository hasn't been set up");
115 return repo->gitdir;
116}
117
118const char *repo_get_common_dir(struct repository *repo)
119{

Callers 15

read_early_configFunction · 0.85
add_config_scope_argFunction · 0.85
prefix_pathFunction · 0.85
is_inside_git_dirFunction · 0.85
update_relative_gitdirFunction · 0.85
create_default_filesFunction · 0.85
init_dbFunction · 0.85
write_index_as_treeFunction · 0.85
init_pathspec_itemFunction · 0.85
is_current_worktreeFunction · 0.85
read_apply_cacheFunction · 0.85

Calls

no outgoing calls

Tested by 1

init_pathspec_itemFunction · 0.68