diff options
author | Jeff King <peff@peff.net> | 2013-07-12 02:32:25 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-12 10:14:06 -0700 |
commit | 412916ee131cf8b0aaac96313ce8686aebe3a47a (patch) | |
tree | 797ed05d320bdee54e631d070bae7f118f71b679 /t/t4034/cpp | |
parent | packed_object_info: hoist delta type resolution to helper (diff) | |
download | tgif-412916ee131cf8b0aaac96313ce8686aebe3a47a.tar.xz |
packed_object_info: make type lookup optional
Currently, packed_object_info can save some work by not
calculating the size or disk_size of the object if the
caller is not interested. However, it always calculates the
true object type, whether the caller cares or not, and only
optionally returns the easy-to-get "representation type".
Let's swap these types. The function will now return the
representation type (or OBJ_BAD on failure), and will only
optionally fill in the true type.
There should be no behavior change yet, as the only caller,
sha1_object_info_extended, will always feed it a type
pointer.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4034/cpp')
0 files changed, 0 insertions, 0 deletions