]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
Move 'unpack_trees()' over to 'traverse_trees()' interface
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Mar 2008 04:15:44 +0000 (20:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Mar 2008 08:43:47 +0000 (00:43 -0800)
commit01904572a5cf869983fab454f552542f16b1fe1f
tree00b4af2b2c0e90734ef46f311ccc49f29f63d1ff
parent91e4f03604bd089e09154e95294d5d08c805ea49
Move 'unpack_trees()' over to 'traverse_trees()' interface

This not only deletes more code than it adds, it gets rid of a
singularly hard-to-understand function (unpack_trees_rec()), and
replaces it with a set of smaller and simpler functions that use the
generic tree traversal mechanism to walk over one or more git trees in
parallel.

It's still not the most wonderful interface, and by no means is the new
code easy to understand either, but it's at least a bit less opaque.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c