summaryrefslogtreecommitdiff
path: root/builtin/submodule--helper.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2019-03-20 04:15:48 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-03-20 18:34:09 +0900
commitc5c33504c906f6bf09fe00a1a32c6c4bdb76ed0f (patch)
treed3639f227f131786511121123d1fb6643127b2bd /builtin/submodule--helper.c
parentunpack-trees: drop unused error_type parameters (diff)
downloadtgif-c5c33504c906f6bf09fe00a1a32c6c4bdb76ed0f.tar.xz
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/submodule--helper.c')
-rw-r--r--builtin/submodule--helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index 6bcc4f1bd7..8342b78add 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -348,7 +348,7 @@ static int module_list_compute(int argc, const char **argv,
i++;
}
- if (ps_matched && report_path_error(ps_matched, pathspec, prefix))
+ if (ps_matched && report_path_error(ps_matched, pathspec))
result = -1;
free(ps_matched);