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

Function prune_traversal

tree-walk.c:420–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420static 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
434int traverse_trees(struct index_state *istate,
435 int n, struct tree_desc *t,

Callers 1

traverse_treesFunction · 0.85

Calls 1

tree_entry_interestingFunction · 0.85

Tested by

no test coverage detected