]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
tree.c: allow read_tree_recursive() to traverse gitlink entries
authorLars Hjemli <hjemli@gmail.com>
Sun, 25 Jan 2009 00:52:05 +0000 (01:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Feb 2009 20:14:34 +0000 (12:14 -0800)
commitd3bee161fef7820e83b44b899c531228a5546e87
tree8d9d3d1beb916c3499045a2670cd8c0fd77a250c
parent621f1b4bcf40f1469fc59202248df35619e33c82
tree.c: allow read_tree_recursive() to traverse gitlink entries

When the callback function invoked from read_tree_recursive() returns
the value `READ_TREE_RECURSIVE` for a gitlink entry, the traversal will
now continue into the tree connected to the gitlinked commit. This
functionality can be used to allow inter-repository operations, but
since the current users of read_tree_recursive() does not yet support
such operations, they have been modified where necessary to make sure
that they never return READ_TREE_RECURSIVE for gitlink entries (hence
no change in behaviour should be introduces by this patch alone).

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c
builtin-ls-tree.c
merge-recursive.c
tree.c