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

Function match_objfind

combine-diff.c:1448–1460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1446}
1447
1448static int match_objfind(struct combine_diff_path *path,
1449 int num_parent,
1450 const struct oidset *set)
1451{
1452 int i;
1453 if (oidset_contains(set, &path->oid))
1454 return 1;
1455 for (i = 0; i < num_parent; i++) {
1456 if (oidset_contains(set, &path->parent[i].oid))
1457 return 1;
1458 }
1459 return 0;
1460}
1461
1462static struct combine_diff_path *combined_objfind(struct diff_options *opt,
1463 struct combine_diff_path *paths,

Callers 1

combined_objfindFunction · 0.85

Calls 1

oidset_containsFunction · 0.85

Tested by

no test coverage detected