| 583 | } |
| 584 | |
| 585 | static int match_pathspec_with_flags(struct index_state *istate, |
| 586 | const struct pathspec *ps, |
| 587 | const char *name, int namelen, |
| 588 | int prefix, char *seen, unsigned flags) |
| 589 | { |
| 590 | int positive, negative; |
| 591 | positive = do_match_pathspec(istate, ps, name, namelen, |
| 592 | prefix, seen, flags); |
| 593 | if (!(ps->magic & PATHSPEC_EXCLUDE) || !positive) |
| 594 | return positive; |
| 595 | negative = do_match_pathspec(istate, ps, name, namelen, |
| 596 | prefix, seen, |
| 597 | flags | DO_MATCH_EXCLUDE); |
| 598 | return negative ? 0 : positive; |
| 599 | } |
| 600 | |
| 601 | int match_pathspec(struct index_state *istate, |
| 602 | const struct pathspec *ps, |
no test coverage detected