Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-25 10:41:13 +0300
committerJunio C Hamano <gitster@pobox.com>2019-04-25 10:41:13 +0300
commite313c768e0daf78da2d9e23967dc6625e9db0837 (patch)
tree7acf563f758536f999ee12fe1ef549651802623d /builtin
parent776f3e1fb73a6440804aa3dde4ffd3b6bdf60a19 (diff)
parent5a1dbd48bcd1b917ce103e4f5bb68d3cfadf9543 (diff)
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')
-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;