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

Function get_shallow_commits

shallow.c:243–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243struct commit_list *get_shallow_commits(struct object_array *heads,
244 struct object_array *shallows, int deepen_relative,
245 int depth, int shallow_flag, int not_shallow_flag)
246{
247 if (shallows && deepen_relative) {
248 int cur_shallow_depth = get_shallows_depth(heads, shallows);
249 if (cur_shallow_depth)
250 depth += cur_shallow_depth;
251 else
252 return NULL;
253 }
254 return get_shallows_or_depth(heads, NULL, NULL,
255 depth, shallow_flag, not_shallow_flag);
256}
257
258static void show_commit(struct commit *commit, void *data)
259{

Callers 1

deepenFunction · 0.85

Calls 2

get_shallows_depthFunction · 0.85
get_shallows_or_depthFunction · 0.85

Tested by

no test coverage detected