X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diff-lib.c;h=fc0dff31b58c8bd6668de5c6396a93b31cc5729d;hb=d909e0761c234b28aac77566368c1ee5451a856a;hp=ebe751e72d0ca9db2f0a9d2576f3dc3f41ffc31d;hpb=a151c28c729f459390027300f82465a669ba2df9;p=git.git diff --git a/diff-lib.c b/diff-lib.c index ebe751e72..fc0dff31b 100644 --- a/diff-lib.c +++ b/diff-lib.c @@ -289,7 +289,7 @@ static void show_new_file(struct rev_info *revs, /* * New file in the index: it might actually be different in - * the working copy. + * the working tree. */ if (get_stat_data(new, &sha1, &mode, cached, match_missing, &dirty_submodule, &revs->diffopt) < 0) @@ -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);