]> git.ipfire.org Git - thirdparty/git.git/commitdiff
shortlog: extract `--group` fragment for translation
authorTaylor Blau <me@ttaylorr.com>
Mon, 24 Oct 2022 18:55:36 +0000 (14:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2022 21:48:05 +0000 (14:48 -0700)
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>
builtin/shortlog.c

index 18f0800c826274cd615cc5e37cda2531a6e370ee..d0645769d7ac512a3b07fb2300de945657cb9d92 100644 (file)
@@ -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");
        }