| 34 | } |
| 35 | |
| 36 | static inline int ce_path_match(struct index_state *istate, |
| 37 | const struct cache_entry *ce, |
| 38 | const struct pathspec *pathspec, |
| 39 | char *seen) |
| 40 | { |
| 41 | return match_pathspec(istate, pathspec, ce->name, ce_namelen(ce), 0, seen, |
| 42 | S_ISDIR(ce->ce_mode) || S_ISGITLINK(ce->ce_mode)); |
| 43 | } |
| 44 | |
| 45 | #endif /* READ_CACHE_H */ |