| 609 | } |
| 610 | |
| 611 | int match_leading_pathspec(struct index_state *istate, |
| 612 | const struct pathspec *ps, |
| 613 | const char *name, int namelen, |
| 614 | int prefix, char *seen, int is_dir) |
| 615 | { |
| 616 | unsigned flags = is_dir ? DO_MATCH_DIRECTORY | DO_MATCH_LEADING_PATHSPEC : 0; |
| 617 | return match_pathspec_with_flags(istate, ps, name, namelen, |
| 618 | prefix, seen, flags); |
| 619 | } |
| 620 | |
| 621 | /** |
| 622 | * Check if a submodule is a superset of the pathspec |
no test coverage detected