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

Function replace_refs_enabled

replace-object.c:97–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97int replace_refs_enabled(struct repository *r)
98{
99 if (!read_replace_refs)
100 return 0;
101
102 if (r->gitdir) {
103 prepare_repo_settings(r);
104 return r->settings.read_replace_refs;
105 }
106
107 /* repository has no objects or refs. */
108 return 0;
109}

Callers 3

lookup_replace_objectFunction · 0.85
commit_graph_compatibleFunction · 0.85
add_ref_decorationFunction · 0.85

Calls 1

prepare_repo_settingsFunction · 0.85

Tested by

no test coverage detected