Code

Merge branch 'cn/eradicate-working-copy' into maint
[git.git] / diff-lib.c
index c5e07545b22e4023d4b1196744294842a1d06f03..62f4cd94cfbc4d3fe9e46c84f318af6624349a48 100644 (file)
@@ -468,6 +468,7 @@ static int diff_cache(struct rev_info *revs,
        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);
        return unpack_trees(1, &t, &opts);