]> git.ipfire.org Git - thirdparty/git.git/commit - tree-walk.c
Make 'traverse_trees()' traverse conflicting DF entries in parallel
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Mar 2008 04:06:18 +0000 (20:06 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Mar 2008 08:43:47 +0000 (00:43 -0800)
commit91e4f03604bd089e09154e95294d5d08c805ea49
tree4e558499cc4f26afc480983d28e9a1401fac818e
parent5803c6f8a2faf8cfbbd046d9ebd682b82bb2b086
Make 'traverse_trees()' traverse conflicting DF entries in parallel

This makes the traverse_trees() entry comparator routine use the more
relaxed form of name comparison that considers files and directories
with the same name identical.

We pass in a separate mask for just the directory entries, so that the
callback routine can decide (if it wants to) to only handle one or the
other type, but generally most (all?) users are expected to really want
to see the case of a name 'foo' showing up in one tree as a file and in
another as a directory at the same time.

In particular, moving 'unpack_trees()' over to use this tree traversal
mechanism requires this.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-tree.c
tree-walk.c
tree-walk.h