commit | 44b877e9bc944258db096a0ec57151be7c8cbf66 | [log] [tgz] |
---|---|---|
author | Jeff King <peff@peff.net> | Mon Jun 22 06:45:41 2015 -0400 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Jun 22 14:55:52 2015 -0700 |
tree | a0dfb70a1c31622cdd2ee1f3fde9f80d9945bc67 | |
parent | 82330950d96a2c2b971ec5b29f59625bcfb62d47 [diff] |
cat-file: split batch_one_object into two stages There are really two things going on in this function: 1. We convert the name we got on stdin to a sha1. 2. We look up and print information on the sha1. Let's split out the second half so that we can call it separately. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>