parse_pathspec: support prefixing original patterns
[gitweb.git] / diff-lib.c
index b6f4b21637fe66a614a0dd6581f90fc12e80a6f8..d4e17f76620a46a659c7affcb3cd270f86b5a957 100644 (file)
@@ -476,7 +476,6 @@ static int diff_cache(struct rev_info *revs,
        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);