aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-25 16:41:13 +0900
committerJunio C Hamano <gitster@pobox.com>2019-04-25 16:41:13 +0900
commite313c768e0daf78da2d9e23967dc6625e9db0837 (patch)
tree7acf563f758536f999ee12fe1ef549651802623d /builtin/commit.c
parentMerge branch 'jk/server-info-rabbit-hole' (diff)
parentcommit: improve error message in "-a <paths>" case (diff)
downloadgit-e313c768e0daf78da2d9e23967dc6625e9db0837.tar.gz
git-e313c768e0daf78da2d9e23967dc6625e9db0837.zip
Merge branch 'nd/commit-a-with-paths-msg-update'
The message given when "git commit -a <paths>" errors out has been updated. * nd/commit-a-with-paths-msg-update: commit: improve error message in "-a <paths>" case
Diffstat (limited to 'builtin/commit.c')
-rw-r--r--builtin/commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c
index a138ff85b0..833ecb316a 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -1194,7 +1194,8 @@ static int parse_and_validate_options(int argc, const char *argv[],
handle_untracked_files_arg(s);
if (all && argc > 0)
- die(_("Paths with -a does not make sense."));
+ die(_("paths '%s ...' with -a does not make sense"),
+ argv[0]);
if (status_format != STATUS_FORMAT_NONE)
dry_run = 1;