summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-06-22 06:45:33 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-06-22 14:55:52 -0700
commit82330950d96a2c2b971ec5b29f59625bcfb62d47 (patch)
treea2a7dc139246554d923584aecb42ee616f34b9ea /builtin/diff.c
parentcat-file: add --buffer option (diff)
downloadtgif-82330950d96a2c2b971ec5b29f59625bcfb62d47.tar.xz
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 'builtin/diff.c')
0 files changed, 0 insertions, 0 deletions