Make "tree_entry" have a SHA1 instead of a union of object pointers
authorLinus Torvalds <torvalds@osdl.org>
Sun, 28 May 2006 22:10:04 +0000 (15:10 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 29 May 2006 02:40:18 +0000 (19:40 -0700)
commita755dfe45c10ccd9f180d3c267602ad18d127d6a
tree2693d3d277325ab3ff792259d939d96402e2db72
parentd2eafb76611670d7573f9409b0c727019fe50e18
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>
blame.c
builtin-read-tree.c
builtin-rev-list.c
fsck-objects.c
http-push.c
object.c
revision.c
tree.c
tree.h