Add return value to 'traverse_tree()' callback
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Mar 2008 03:44:06 +0000 (19:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Mar 2008 08:43:47 +0000 (00:43 -0800)
commit5803c6f8a2faf8cfbbd046d9ebd682b82bb2b086
tree4f586a9a7d7735115167257b023ac9e7fc01869d
parent40d934df72eaf244c826d5c26da0896ce7185cb6
Add return value to 'traverse_tree()' callback

This allows the callback to return an error value, but it can also
specify which of the tree entries that it actually used up by returning
a positive mask value.

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