| 418 | } |
| 419 | |
| 420 | static inline int prune_traversal(struct index_state *istate, |
| 421 | struct name_entry *e, |
| 422 | struct traverse_info *info, |
| 423 | struct strbuf *base, |
| 424 | int still_interesting) |
| 425 | { |
| 426 | if (!info->pathspec || still_interesting == 2) |
| 427 | return 2; |
| 428 | if (still_interesting < 0) |
| 429 | return still_interesting; |
| 430 | return tree_entry_interesting(istate, e, base, |
| 431 | info->pathspec); |
| 432 | } |
| 433 | |
| 434 | int traverse_trees(struct index_state *istate, |
| 435 | int n, struct tree_desc *t, |
no test coverage detected