X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diff-lib.c;h=fc0dff31b58c8bd6668de5c6396a93b31cc5729d;hb=39af78961d8e7f4c0aee73e77e9eb5b6033f79c2;hp=62f4cd94cfbc4d3fe9e46c84f318af6624349a48;hpb=01e0f162a70f61de0b7aa0e9d8c49c03cbafeb64;p=git.git diff --git a/diff-lib.c b/diff-lib.c index 62f4cd94c..fc0dff31b 100644 --- a/diff-lib.c +++ b/diff-lib.c @@ -469,6 +469,8 @@ static int diff_cache(struct rev_info *revs, opts.src_index = &the_index; opts.dst_index = NULL; opts.pathspec = &revs->diffopt.pathspec; + opts.pathspec->recursive = 1; + opts.pathspec->max_depth = -1; init_tree_desc(&t, tree->buffer, tree->size); return unpack_trees(1, &t, &opts);