author | Linus Torvalds <torvalds@osdl.org> | |
Sun, 28 May 2006 22:07:07 +0000 (15:07 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 29 May 2006 02:40:18 +0000 (19:40 -0700) | ||
commit | d2eafb76611670d7573f9409b0c727019fe50e18 | |
tree | 61476cd4ade7077cfe7a8f94270cd0dede4870c1 | tree | snapshot |
parent | 7d65848afd42f075f6db0d03da2c9f5a9bac6267 | commit | diff |
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>
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 | diff | blob | history | |
builtin-rev-list.c | diff | blob | history | |
fsck-objects.c | diff | blob | history | |
object.c | diff | blob | history | |
tree.c | diff | blob | history | |
tree.h | diff | blob | history |