* Check if a submodule is a superset of the pathspec */
| 622 | * Check if a submodule is a superset of the pathspec |
| 623 | */ |
| 624 | int submodule_path_match(struct index_state *istate, |
| 625 | const struct pathspec *ps, |
| 626 | const char *submodule_name, |
| 627 | char *seen) |
| 628 | { |
| 629 | int matched = match_pathspec_with_flags(istate, ps, submodule_name, |
| 630 | strlen(submodule_name), |
| 631 | 0, seen, |
| 632 | DO_MATCH_DIRECTORY | |
| 633 | DO_MATCH_LEADING_PATHSPEC); |
| 634 | return matched; |
| 635 | } |
| 636 | |
| 637 | int report_path_error(const char *ps_matched, |
| 638 | const struct pathspec *pathspec) |
no test coverage detected