summaryrefslogtreecommitdiff
path: root/builtin/for-each-ref.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-01-07 22:10:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-01-07 22:31:10 (GMT)
commit07e23839459465c1319c7ce91afaf01d3e31a97e (patch)
treec9eaebc26b18e260241a476fff6207316239737c /builtin/for-each-ref.c
parent832cf74c0792a58c9c28e32a8fe5dbb694f0cce6 (diff)
downloadgit-07e23839459465c1319c7ce91afaf01d3e31a97e.zip
git-07e23839459465c1319c7ce91afaf01d3e31a97e.tar.gz
git-07e23839459465c1319c7ce91afaf01d3e31a97e.tar.bz2
cat-file: refactor error handling of batch_objects
This just pulls the return value for the function out of the inner loop, so we can break out of the loop rather than do an early return. This will make it easier to put any cleanup for the function in one place. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/for-each-ref.c')
0 files changed, 0 insertions, 0 deletions