| 583 | char *seen); |
| 584 | |
| 585 | static inline int dir_path_match(struct index_state *istate, |
| 586 | const struct dir_entry *ent, |
| 587 | const struct pathspec *pathspec, |
| 588 | int prefix, char *seen) |
| 589 | { |
| 590 | int has_trailing_dir = ent->len && ent->name[ent->len - 1] == '/'; |
| 591 | int len = has_trailing_dir ? ent->len - 1 : ent->len; |
| 592 | return match_pathspec(istate, pathspec, ent->name, len, prefix, seen, |
| 593 | has_trailing_dir); |
| 594 | } |
| 595 | |
| 596 | int cmp_dir_entry(const void *p1, const void *p2); |
| 597 | int check_dir_entry_contains(const struct dir_entry *out, const struct dir_entry *in); |
no test coverage detected