Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit: improve error message in "-a <paths>" case
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 2986553d5ffb97f0798e4d4eb921073439fb9a92..48ddccaa3747006c55fffea7125ffdf5f5cb1cac 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-1185,7
+1185,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;