MCPcopy Index your code
hub / github.com/git/git / should_recurse

Function should_recurse

tree-diff.c:100–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static int should_recurse(const struct strbuf *name, struct diff_options *opt)
101{
102 if (!opt->flags.recursive)
103 return 0;
104 if (!opt->max_depth_valid)
105 return 1;
106
107 /*
108 * We catch this during diff_setup_done, but let's double-check
109 * against any internal munging.
110 */
111 if (opt->pathspec.has_wildcard)
112 BUG("wildcard pathspecs are incompatible with max-depth");
113
114 return check_recursion_depth(name, &opt->pathspec, opt->max_depth);
115}
116
117static void ll_diff_tree_paths(
118 struct combine_diff_path ***tail, const struct object_id *oid,

Callers 1

emit_pathFunction · 0.85

Calls 1

check_recursion_depthFunction · 0.85

Tested by

no test coverage detected