diff --git a/diff-lib.c b/diff-lib.c
index c5e07545b22e4023d4b1196744294842a1d06f03..fc0dff31b58c8bd6668de5c6396a93b31cc5729d 100644 (file)
--- a/diff-lib.c
+++ b/diff-lib.c
opts.unpack_data = revs;
opts.src_index = &the_index;
opts.dst_index = NULL;
opts.unpack_data = revs;
opts.src_index = &the_index;
opts.dst_index = NULL;
+ opts.pathspec = &revs->diffopt.pathspec;
+ opts.pathspec->recursive = 1;
+ opts.pathspec->max_depth = -1;
init_tree_desc(&t, tree->buffer, tree->size);
return unpack_trees(1, &t, &opts);
init_tree_desc(&t, tree->buffer, tree->size);
return unpack_trees(1, &t, &opts);