author | Linus Torvalds <torvalds@osdl.org> | |
Sun, 28 May 2006 22:10:04 +0000 (15:10 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 29 May 2006 02:40:18 +0000 (19:40 -0700) | ||
commit | a755dfe45c10ccd9f180d3c267602ad18d127d6a | |
tree | 2693d3d277325ab3ff792259d939d96402e2db72 | tree | snapshot |
parent | d2eafb76611670d7573f9409b0c727019fe50e18 | commit | diff |
Make "tree_entry" have a SHA1 instead of a union of object pointers
This is preparatory work for further cleanups, where we try to make
tree_entry look more like the more efficient tree-walk descriptor.
Instead of having a union of pointers to blob/tree/objects, this just
makes "struct tree_entry" have the raw SHA1, and makes all the users use
that instead (often that implies adding a "lookup_tree(..)" on the sha1,
but sometimes the user just wanted the SHA1 in the first place, and it
just avoids an unnecessary indirection).
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This is preparatory work for further cleanups, where we try to make
tree_entry look more like the more efficient tree-walk descriptor.
Instead of having a union of pointers to blob/tree/objects, this just
makes "struct tree_entry" have the raw SHA1, and makes all the users use
that instead (often that implies adding a "lookup_tree(..)" on the sha1,
but sometimes the user just wanted the SHA1 in the first place, and it
just avoids an unnecessary indirection).
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
blame.c | diff | blob | history | |
builtin-read-tree.c | diff | blob | history | |
builtin-rev-list.c | diff | blob | history | |
fsck-objects.c | diff | blob | history | |
http-push.c | diff | blob | history | |
object.c | diff | blob | history | |
revision.c | diff | blob | history | |
tree.c | diff | blob | history | |
tree.h | diff | blob | history |