]> git.ipfire.org Git - thirdparty/git.git/commit
parse_object_buffer: do not set object type
authorJeff King <peff@peff.net>
Sun, 13 Jul 2014 06:42:00 +0000 (02:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jul 2014 01:59:05 +0000 (18:59 -0700)
commit5af01caa08700e389d49a81be15c7413abd4aa69
tree32124a0790a3318ad9ddd07cfd10a39e398bf8ed
parentd36f51c13b54a872cdaf08a1765a23afab26ae51
parse_object_buffer: do not set object type

The only way that "obj" can be non-NULL is if it came from
one of the lookup_* functions. These functions always ensure
that the object has the expected type (and return NULL
otherwise), so there is no need for us to set the type.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object.c