Code

Initialize tree descriptors with a helper function rather than by hand.
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 21 Mar 2007 17:08:25 +0000 (10:08 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 21 Mar 2007 17:21:57 +0000 (10:21 -0700)
commit6fda5e5180c2e7c130978361aea53b4e66f36823
tree89df3a31883fe84ae06d1c05f29fa823614eef87
parenta8c40471ab0851bf9a58f7dc76f121258e0690e2
Initialize tree descriptors with a helper function rather than by hand.

This removes slightly more lines than it adds, but the real reason for
doing this is that future optimizations will require more setup of the
tree descriptor, and so we want to do it in one place.

Also renamed the "desc.buf" field to "desc.buffer" just to trigger
compiler errors for old-style manual initializations, making sure I
didn't miss anything.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
15 files changed:
builtin-fsck.c
builtin-grep.c
builtin-pack-objects.c
builtin-read-tree.c
builtin-reflog.c
fetch.c
http-push.c
list-objects.c
reachable.c
revision.c
tree-diff.c
tree-walk.c
tree-walk.h
tree.c
unpack-trees.c