aboutsummaryrefslogtreecommitdiff
path: root/builtin/cat-file.c
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-06-13 14:05:57 -0700
committerJunio C Hamano <gitster@pobox.com>2017-06-15 09:51:57 -0700
commit285a2984bd92a273fb85a216ec7243ea74761a12 (patch)
treeccbc0b4c38d9f876bdba3236a770345fcd032178 /builtin/cat-file.c
parent02a2850ad58eff6de70eb2dc5f96345c463857ac (diff)
downloadgit-285a2984bd92a273fb85a216ec7243ea74761a12.tar.gz
git-285a2984bd92a273fb85a216ec7243ea74761a12.tar.xz
sha1_file: teach packed_object_info about typename
In commit 46f0344 ("sha1_file: support reading from a loose object of unknown type", 2015-05-06), "struct object_info" gained a "typename" field that could represent a type name from a loose object file, whether valid or invalid, as opposed to the existing "typep" which could only represent valid types. Some relatively complex manipulations were added to avoid breaking packed_object_info() without modifying it, but it is much easier to just teach packed_object_info() about the new field. Therefore, teach packed_object_info() as described above. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/cat-file.c')
0 files changed, 0 insertions, 0 deletions