parse_pathspec: support prefixing original patterns
[gitweb.git] / tree-diff.c
index ba01563a0241041cb401cfb03495e6067847248e..826512e84d0d99bd34d7d428e3d712d60d729eac 100644 (file)
@@ -138,7 +138,6 @@ int diff_tree(struct tree_desc *t1, struct tree_desc *t2,
 
        /* Enable recursion indefinitely */
        opt->pathspec.recursive = DIFF_OPT_TST(opt, RECURSIVE);
-       opt->pathspec.max_depth = -1;
 
        strbuf_init(&base, PATH_MAX);
        strbuf_add(&base, base_str, baselen);