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

Function commit_graph_compatible

commit-graph.c:223–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223static int commit_graph_compatible(struct repository *r)
224{
225 if (!r->gitdir)
226 return 0;
227
228 if (replace_refs_enabled(r)) {
229 prepare_replace_object(r);
230 if (oidmap_get_size(&r->objects->replace_map))
231 return 0;
232 }
233
234 prepare_commit_graft(r);
235 if (r->parsed_objects &&
236 (r->parsed_objects->grafts_nr || r->parsed_objects->substituted_parent))
237 return 0;
238 if (is_repository_shallow(r))
239 return 0;
240
241 return 1;
242}
243
244int open_commit_graph(const char *graph_file, int *fd, struct stat *st)
245{

Callers 2

prepare_commit_graphFunction · 0.85
write_commit_graphFunction · 0.85

Calls 5

replace_refs_enabledFunction · 0.85
prepare_replace_objectFunction · 0.85
oidmap_get_sizeFunction · 0.85
prepare_commit_graftFunction · 0.85
is_repository_shallowFunction · 0.85

Tested by

no test coverage detected