[PATCH 3/7] shortlog: extract `--group` fragment for translation
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Oct 11, 2022, 00:34 UTC
- Message-ID
- <c3f50465cba4430b2014a76c5e473b906db50059.1665448437.git.me@ttaylorr.com>
- In-Reply-To
- <cover.1665448437.git.me@ttaylorr.com>
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> --- builtin/shortlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/shortlog.c b/builtin/shortlog.c index 53c379a51d..051c97bd5a 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"); }
-- 2.37.0.1.g1379af2e9d