Code

Add raw tree buffer info to "struct tree"
authorLinus Torvalds <torvalds@osdl.org>
Sun, 28 May 2006 22:07:07 +0000 (15:07 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 29 May 2006 02:40:18 +0000 (19:40 -0700)
commitd2eafb76611670d7573f9409b0c727019fe50e18
tree61476cd4ade7077cfe7a8f94270cd0dede4870c1
parent7d65848afd42f075f6db0d03da2c9f5a9bac6267
Add raw tree buffer info to "struct tree"

This allows us to avoid allocating information for names etc, because
we can just use the information from the tree buffer directly.

We still keep the old "tree_entry_list" in struct tree as well, so old
users aren't affected, apart from the fact that the allocations are
different (if you free a tree entry, you should no longer free the name
allocation for it, since it's allocated as part of "tree->buffer")

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-read-tree.c
builtin-rev-list.c
fsck-objects.c
object.c
tree.c
tree.h