]> git.ipfire.org Git - thirdparty/git.git/commitdiff
list-objects-filter-options: error is localizeable
authorMatthew DeVore <matvore@google.com>
Fri, 31 May 2019 18:01:56 +0000 (11:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 May 2019 18:30:10 +0000 (11:30 -0700)
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>
list-objects-filter-options.c

index e8da2e8581b2df956411f19e796ceb94adcef903..d0a5362331991fa73e9a24aef9348d500a591368 100644 (file)
@@ -84,7 +84,7 @@ static int gently_parse_list_objects_filter(
        }
 
        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));
        return 1;