diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-10-24 20:55:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-24 23:48:05 +0200 |
commit | b017d3dae9fe5a5b636b8f7a5235cee2b1b90332 (patch) | |
tree | a189059a2444db1258598caee050505fb0c5618a /builtin/shortlog.c | |
parent | shortlog: make trailer insertion a noop when appropriate (diff) | |
download | git-b017d3dae9fe5a5b636b8f7a5235cee2b1b90332.tar.xz git-b017d3dae9fe5a5b636b8f7a5235cee2b1b90332.zip |
shortlog: extract `--group` fragment for translation
The subsequent commit will add another unhandled case in
`read_from_stdin()` which will want to use the same message as with
`--group=trailer`.
Extract the "--group=trailer" part from this message so the same
translation key can be used for both cases.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | builtin/shortlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/shortlog.c b/builtin/shortlog.c index 18f0800c82..d0645769d7 100644 --- a/builtin/shortlog.c +++ b/builtin/shortlog.c @@ -132,7 +132,7 @@ static void read_from_stdin(struct shortlog *log) match = committer_match; break; case SHORTLOG_GROUP_TRAILER: - die(_("using --group=trailer with stdin is not supported")); + die(_("using %s with stdin is not supported"), "--group=trailer"); default: BUG("unhandled shortlog group"); } |