diff options
author | Jeff King <peff@peff.net> | 2015-06-22 06:45:33 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-22 14:55:52 -0700 |
commit | 82330950d96a2c2b971ec5b29f59625bcfb62d47 (patch) | |
tree | a2a7dc139246554d923584aecb42ee616f34b9ea /userdiff.c | |
parent | fc4937c37219347f4e2c25a271577b333942453f (diff) | |
download | git-82330950d96a2c2b971ec5b29f59625bcfb62d47.tar.gz |
cat-file: stop returning value from batch_one_object
If batch_one_object returns an error code, we stop reading
input. However, it will only do so if we feed it NULL,
which cannot happen; we give it the "buf" member of a
strbuf, which is always non-NULL.
We did originally stop on other errors (like a missing
object), but this was changed in 3c076db (cat-file --batch /
--batch-check: do not exit if hashes are missing,
2008-06-09). These days we keep going for any per-object
error (and print "missing" when necessary).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'userdiff.c')
0 files changed, 0 insertions, 0 deletions