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

Function locate_simplify_state

revision.c:3351–3361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3349};
3350
3351static struct merge_simplify_state *locate_simplify_state(struct rev_info *revs, struct commit *commit)
3352{
3353 struct merge_simplify_state *st;
3354
3355 st = lookup_decoration(&revs->merge_simplification, &commit->object);
3356 if (!st) {
3357 CALLOC_ARRAY(st, 1);
3358 add_decoration(&revs->merge_simplification, &commit->object, st);
3359 }
3360 return st;
3361}
3362
3363static int mark_redundant_parents(struct commit *commit)
3364{

Callers 2

simplify_oneFunction · 0.85
simplify_mergesFunction · 0.85

Calls 2

lookup_decorationFunction · 0.85
add_decorationFunction · 0.85

Tested by

no test coverage detected