Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
mv: move submodules together with their work trees
[gitweb.git]
/
diff-lib.c
diff --git
a/diff-lib.c
b/diff-lib.c
index d4e17f76620a46a659c7affcb3cd270f86b5a957..0a95763063494914e30b326a87d5e007765d8fcb 100644
(file)
--- a/
diff-lib.c
+++ b/
diff-lib.c
@@
-501,7
+501,7
@@
int do_diff_cache(const unsigned char *tree_sha1, struct diff_options *opt)
struct rev_info revs;
init_revisions(&revs, NULL);
-
init_pathspec(&revs.prune_data, opt->pathspec.raw
);
+
copy_pathspec(&revs.prune_data, &opt->pathspec
);
revs.diffopt = *opt;
if (diff_cache(&revs, tree_sha1, NULL, 1))