| 1446 | } |
| 1447 | |
| 1448 | static 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 | |
| 1462 | static struct combine_diff_path *combined_objfind(struct diff_options *opt, |
| 1463 | struct combine_diff_path *paths, |
no test coverage detected