]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff-lib.c
Documentation: typofix --column description
[thirdparty/git.git] / diff-lib.c
index 082e249fc3c676f2fbcc28eef5db838ecea2b59d..b73cc1859a49eb8b7f3cf7321680dfda4d96c705 100644 (file)
@@ -606,10 +606,12 @@ int do_diff_cache(const struct object_id *tree_oid, struct diff_options *opt)
 
        repo_init_revisions(opt->repo, &revs, NULL);
        copy_pathspec(&revs.prune_data, &opt->pathspec);
+       diff_setup_done(&revs.diffopt);
        revs.diffopt = *opt;
 
        if (diff_cache(&revs, tree_oid, NULL, 1))
                exit(128);
+       clear_pathspec(&revs.prune_data);
        return 0;
 }