aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/checkout.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-03-20 04:15:48 -0400
committerJunio C Hamano <gitster@pobox.com>2019-03-20 18:34:09 +0900
commitc5c33504c906f6bf09fe00a1a32c6c4bdb76ed0f (patch)
treed3639f227f131786511121123d1fb6643127b2bd /builtin/checkout.c
parentdf351c6e676e8eea0defa00ea919ad7da6bd03f1 (diff)
downloadgit-c5c33504c906f6bf09fe00a1a32c6c4bdb76ed0f.tar.gz
report_path_error(): drop unused prefix parameter
This hasn't been used since 17ddc66e70 (convert report_path_error to take struct pathspec, 2013-07-14), as the names in the struct will have already been prefixed when they were parsed. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 0e6037b296..72f7110fd8 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -376,7 +376,7 @@ static int checkout_paths(const struct checkout_opts *opts,
ps_matched,
opts);
- if (report_path_error(ps_matched, &opts->pathspec, opts->prefix)) {
+ if (report_path_error(ps_matched, &opts->pathspec)) {
free(ps_matched);
return 1;
}