| 98 | } |
| 99 | |
| 100 | static 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 | |
| 117 | static void ll_diff_tree_paths( |
| 118 | struct combine_diff_path ***tail, const struct object_id *oid, |
no test coverage detected