]> git.ipfire.org Git - thirdparty/git.git/blobdiff - combine-diff.c
kill limit_pathspec_to_literal() as it's only used by parse_pathspec()
[thirdparty/git.git] / combine-diff.c
index 6dc06093d3c1eb6f3ab7a9cc79f0f192e16dc617..c973f5d07ec70d3c6b86defc3e1421ed2ea6673b 100644 (file)
@@ -1305,7 +1305,7 @@ void diff_tree_combined(const unsigned char *sha1,
        int i, num_paths, needsep, show_log_first, num_parent = parents->nr;
 
        diffopts = *opt;
-       diff_tree_setup_paths(diffopts.pathspec.raw, &diffopts);
+       copy_pathspec(&diffopts.pathspec, &opt->pathspec);
        diffopts.output_format = DIFF_FORMAT_NO_OUTPUT;
        DIFF_OPT_SET(&diffopts, RECURSIVE);
        DIFF_OPT_CLR(&diffopts, ALLOW_EXTERNAL);
@@ -1377,7 +1377,7 @@ void diff_tree_combined(const unsigned char *sha1,
                free(tmp);
        }
 
-       diff_tree_release_paths(&diffopts);
+       free_pathspec(&diffopts.pathspec);
 }
 
 void diff_tree_combined_merge(const struct commit *commit, int dense,