diff --git a/diff-lib.c b/diff-lib.c
index c5e07545b22e4023d4b1196744294842a1d06f03..62f4cd94cfbc4d3fe9e46c84f318af6624349a48 100644 (file)
--- a/diff-lib.c
+++ b/diff-lib.c
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);