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 <matvore@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
8b10a206f0
commit
5c03bc8b1d
@ -84,7 +84,7 @@ static int gently_parse_list_objects_filter(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (errbuf)
|
if (errbuf)
|
||||||
strbuf_addf(errbuf, "invalid filter-spec '%s'", arg);
|
strbuf_addf(errbuf, _("invalid filter-spec '%s'"), arg);
|
||||||
|
|
||||||
memset(filter_options, 0, sizeof(*filter_options));
|
memset(filter_options, 0, sizeof(*filter_options));
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user