diff options
author | Jeff King <peff@peff.net> | 2013-07-12 02:30:48 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-12 10:10:04 -0700 |
commit | 052fe5eaca92cac810cdb7f89bd8860fc2d5f0e1 (patch) | |
tree | 127937faf79fa082bffd6f82622235c1b703170b /t/t9160-git-svn-preserve-empty-dirs.sh | |
parent | sha1_object_info_extended: rename "status" to "type" (diff) | |
download | tgif-052fe5eaca92cac810cdb7f89bd8860fc2d5f0e1.tar.xz |
sha1_loose_object_info: make type lookup optional
Until recently, the only items to request from
sha1_object_info_extended were type and size. This meant
that we always had to open a loose object file to determine
one or the other. But with the addition of the disk_size
query, it's possible that we can fulfill the query without
even opening the object file at all. However, since the
function interface always returns the type, we have no way
of knowing whether the caller cares about it or not.
This patch only modified sha1_loose_object_info to make type
lookup optional using an out-parameter, similar to the way
the size is handled (and the return value is "0" or "-1" for
success or error, respectively).
There should be no functional change yet, though, as
sha1_object_info_extended, the only caller, will always ask
for a type.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9160-git-svn-preserve-empty-dirs.sh')
0 files changed, 0 insertions, 0 deletions