Code

Remove TYPE_* constant macros and use object_type enums consistently.
authorLinus Torvalds <torvalds@osdl.org>
Wed, 12 Jul 2006 03:45:31 +0000 (20:45 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 13 Jul 2006 06:18:03 +0000 (23:18 -0700)
commit1974632c664c2d573b36a00fa993c1c13dd8a967
tree435ba8ee055c206c984240fc28a20ef15bc47e4d
parentd3ba675aae3c6c5722ad15cd9d0f3b7634e976ce
Remove TYPE_* constant macros and use object_type enums consistently.

This updates the type-enumeration constants introduced to reduce
the memory footprint of "struct object" to match the type bits
already used in the packfile format, by removing the former
(i.e. TYPE_* constant macros) and using the latter (i.e. enum
object_type) throughout the code for consistency.

Eventually we can stop passing around the "type strings"
entirely, and this will help - no confusion about two different
integer enumeration.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
22 files changed:
blob.c
builtin-diff.c
builtin-fmt-merge-msg.c
builtin-grep.c
builtin-rev-list.c
commit.c
describe.c
fetch-pack.c
fetch.c
fsck-objects.c
http-push.c
name-rev.c
object.c
object.h
pack.h
revision.c
send-pack.c
server-info.c
sha1_name.c
tag.c
tree.c
upload-pack.c