MCPcopy Create free account
hub / github.com/git/git / skip_uninteresting

Function skip_uninteresting

tree-diff.c:320–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static 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/*

Callers 1

ll_diff_tree_pathsFunction · 0.85

Calls 2

tree_entry_interestingFunction · 0.85
update_tree_entryFunction · 0.85

Tested by

no test coverage detected