Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
status: convert to use parse_pathspec
[gitweb.git]
/
builtin
/
diff.c
diff --git
a/builtin/diff.c
b/builtin/diff.c
index 9fc273d8cd78d53a55047e17d44eb89291741167..6bb41aff5d5ed8729373a654d509685c776dc069 100644
(file)
--- a/
builtin/diff.c
+++ b/
builtin/diff.c
@@
-367,6
+367,8
@@
int cmd_diff(int argc, const char **argv, const char *prefix)
}
}
if (rev.prune_data.nr) {
+ /* builtin_diff_b_f() */
+ GUARD_PATHSPEC(&rev.prune_data, PATHSPEC_FROMTOP);
if (!path)
path = rev.prune_data.items[0].match;
paths += rev.prune_data.nr;