Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew DeVore <matvore@google.com>2019-05-31 21:01:56 +0300
committerJunio C Hamano <gitster@pobox.com>2019-05-31 21:30:10 +0300
commit5c03bc8b1d1f992ebe43c567bb95cdb5e0273d28 (patch)
tree99ff41cf2fdbd4777e53f29e43713a54ac18cfb7 /list-objects-filter-options.c
parent8b10a206f090e01ce1ac4d9a10ec769e2409e2b0 (diff)
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>
Diffstat (limited to 'list-objects-filter-options.c')
-rw-r--r--list-objects-filter-options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/list-objects-filter-options.c b/list-objects-filter-options.c
index e8da2e8581..d0a5362331 100644
--- a/list-objects-filter-options.c
+++ b/list-objects-filter-options.c
@@ -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;