This series teaches read_tree_recursive() how to traverse into gitlinked repositories by automatically adding submodule object databases as alternates during traversal. It is still perfectly legal for a submodule not to be checked out, in which case the submodule will be ignored. On top of this, the implementation of 'git archive --submodules' simply activates the new feature in read_tree_recursive(). Lars Hjemli (3): sha1_file: add function to insert alternate object db Teach read_tree_recursive() how to traverse into submodules git-archive: add support for --submodules Documentation/git-archive.txt | 7 +++- archive.c | 4 ++ cache.h | 3 ++ environment.c | 12 ++++++ sha1_file.c | 5 +++ t/t5001-archive-submodules.sh | 78 +++++++++++++++++++++++++++++++++++++++ tree.c | 80 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 187 insertions(+), 2 deletions(-) create mode 100755 t/t5001-archive-submodules.sh -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html