author | Linus Torvalds <torvalds@linux-foundation.org> | |
Wed, 21 Mar 2007 17:08:25 +0000 (10:08 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Mar 2007 17:21:57 +0000 (10:21 -0700) | ||
commit | 6fda5e5180c2e7c130978361aea53b4e66f36823 | |
tree | 89df3a31883fe84ae06d1c05f29fa823614eef87 | tree | snapshot |
parent | a8c40471ab0851bf9a58f7dc76f121258e0690e2 | commit | diff |
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>
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 | diff | blob | history | |
builtin-grep.c | diff | blob | history | |
builtin-pack-objects.c | diff | blob | history | |
builtin-read-tree.c | diff | blob | history | |
builtin-reflog.c | diff | blob | history | |
fetch.c | diff | blob | history | |
http-push.c | diff | blob | history | |
list-objects.c | diff | blob | history | |
reachable.c | diff | blob | history | |
revision.c | diff | blob | history | |
tree-diff.c | diff | blob | history | |
tree-walk.c | diff | blob | history | |
tree-walk.h | diff | blob | history | |
tree.c | diff | blob | history | |
unpack-trees.c | diff | blob | history |