summaryrefslogtreecommitdiff
path: root/unpack-trees.h
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@linux-foundation.org>2007-03-18 13:38:19 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2007-03-19 01:48:56 -0700
commitc711a214c1e9a4dfb5043bc1a11d0f76313b097e (patch)
tree756bb7cadfd1c31da74d5ce18cfdd489f7081251 /unpack-trees.h
parentgit.el: Add support for commit hooks. (diff)
downloadtgif-c711a214c1e9a4dfb5043bc1a11d0f76313b097e.tar.xz
Trivial cleanup of track_tree_refs()
This makes "track_tree_refs()" use the same "tree_entry()" function for counting the entries as it does for actually traversing them a few lines later. Not a biggie, but the reason I care was that this was the only user of "update_tree_entry()" that didn't actually *extract* the tree entry first. It doesn't matter as things stand now, but it meant that a separate test-patch I had that avoided a few more "strlen()" calls by just saving the entry length in the entry descriptor and using it directly when updating wouldn't work without this patch. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'unpack-trees.h')
0 files changed, 0 insertions, 0 deletions