Skip to content

Commit b017d3d

Browse files
ttaylorrgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0b293df commit b017d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/shortlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static void read_from_stdin(struct shortlog *log)
132132
match = committer_match;
133133
break;
134134
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");
136136
default:
137137
BUG("unhandled shortlog group");
138138
}

0 commit comments

Comments
 (0)