| author | Linus Torvalds <torvalds@osdl.org> | |
| Wed, 12 Jul 2006 03:45:31 +0000 (20:45 -0700) | ||
| committer | Junio C Hamano <junkio@cox.net> | |
| Thu, 13 Jul 2006 06:18:03 +0000 (23:18 -0700) | ||
| commit | 1974632c664c2d573b36a00fa993c1c13dd8a967 | |
| tree | 435ba8ee055c206c984240fc28a20ef15bc47e4d | tree | snapshot |
| parent | d3ba675aae3c6c5722ad15cd9d0f3b7634e976ce | commit | diff |
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>
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 | diff | blob | history | |
| builtin-diff.c | diff | blob | history | |
| builtin-fmt-merge-msg.c | diff | blob | history | |
| builtin-grep.c | diff | blob | history | |
| builtin-rev-list.c | diff | blob | history | |
| commit.c | diff | blob | history | |
| describe.c | diff | blob | history | |
| fetch-pack.c | diff | blob | history | |
| fetch.c | diff | blob | history | |
| fsck-objects.c | diff | blob | history | |
| http-push.c | diff | blob | history | |
| name-rev.c | diff | blob | history | |
| object.c | diff | blob | history | |
| object.h | diff | blob | history | |
| pack.h | diff | blob | history | |
| revision.c | diff | blob | history | |
| send-pack.c | diff | blob | history | |
| server-info.c | diff | blob | history | |
| sha1_name.c | diff | blob | history | |
| tag.c | diff | blob | history | |
| tree.c | diff | blob | history | |
| upload-pack.c | diff | blob | history |