Skip to content

Commit 5c03bc8

Browse files
matvoregitster
authored andcommitted
list-objects-filter-options: error is localizeable
The "invalid filter-spec" message is user-facing and not a BUG, so make it localizeable. For reference, the message appears in this context: $ git rev-list --filter=blob:nonse --objects HEAD fatal: invalid filter-spec 'blob:nonse' Signed-off-by: Matthew DeVore <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8b10a20 commit 5c03bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

list-objects-filter-options.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static int gently_parse_list_objects_filter(
8484
}
8585

8686
if (errbuf)
87-
strbuf_addf(errbuf, "invalid filter-spec '%s'", arg);
87+
strbuf_addf(errbuf, _("invalid filter-spec '%s'"), arg);
8888

8989
memset(filter_options, 0, sizeof(*filter_options));
9090
return 1;

0 commit comments

Comments
 (0)