| 318 | } |
| 319 | |
| 320 | static void skip_uninteresting(struct tree_desc *t, struct strbuf *base, |
| 321 | struct diff_options *opt) |
| 322 | { |
| 323 | enum interesting match; |
| 324 | |
| 325 | while (t->size) { |
| 326 | match = tree_entry_interesting(opt->repo->index, &t->entry, |
| 327 | base, &opt->pathspec); |
| 328 | if (match) { |
| 329 | if (match == all_entries_not_interesting) |
| 330 | t->size = 0; |
| 331 | break; |
| 332 | } |
| 333 | update_tree_entry(t); |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | |
| 338 | /* |
no test coverage detected