]> git.ipfire.org Git - thirdparty/git.git/commit - list-objects-filter.c
list-objects-filter: give a more specific error sparse parsing error
authorJon Simons <jon@jonsimons.org>
Sun, 15 Sep 2019 01:13:47 +0000 (21:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Sep 2019 19:47:45 +0000 (12:47 -0700)
commitcf34337f9886bb45f16f0114dc8f3265aea912ce
tree9d54bfe5934ff847ec5340748ab5fd2411dea227
parent4c96a775945d0299e39b982ab9cb32c5132e877d
list-objects-filter: give a more specific error sparse parsing error

The sparse:oid filter has two error modes: we might fail to resolve the
name to an OID, or we might fail to parse the contents of that OID. In
the latter case, let's give a less generic error message, and mention
the OID we did find.

While we're here, let's also mark both messages as translatable.

Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
list-objects-filter.c
t/t5616-partial-clone.sh