Skip to content

Commit

Permalink
shortlog: extract --group fragment for translation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ttaylorr authored and gitster committed Oct 24, 2022
1 parent 0b293df commit b017d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/shortlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit b017d3d

Please sign in to comment.