diff-index: pass pathspec down to unpack-trees machinery
[gitweb.git] / diff-lib.c
index 9c29293bbc05d175ba13338813e8532c7ad677cf..12760b422f83e0c08d4ad9af5419318e9d47bcaa 100644 (file)
@@ -463,6 +463,7 @@ int run_diff_index(struct rev_info *revs, int cached)
        opts.unpack_data = revs;
        opts.src_index = &the_index;
        opts.dst_index = NULL;
+       opts.pathspec = &revs->diffopt.pathspec;
 
        init_tree_desc(&t, tree->buffer, tree->size);
        if (unpack_trees(1, &t, &opts))