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>

Taylor Blau committed Oct 24, 2022 at 14:55 UTC b017d3dae9fe5a5b636b8f7a5235cee2b1b90332
1 file changed +1 -1
builtin/shortlog.c
+1 -1
@@ -132,7 +132,7 @@ static void read_from_stdin(struct shortlog *log)
132 match = committer_match;
133 break;
134 case SHORTLOG_GROUP_TRAILER:
135 - die(_("using --group=trailer with stdin is not supported"));
135 + die(_("using %s with stdin is not supported"), "--group=trailer");
136 default:
137 BUG("unhandled shortlog group");
138 }