status: convert to use parse_pathspec
[gitweb.git] / builtin / diff.c
index 9fc273d8cd78d53a55047e17d44eb89291741167..6bb41aff5d5ed8729373a654d509685c776dc069 100644 (file)
@@ -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;