This patch series implements basic support for traversing the tree objects in submodules when the linked commit object is reachable. Normally such linked commit objects will not be reachable in the containing repository, but adding local copies of submodule repositories as alternate object databases for the containing repo solves this issue. The first patch in the series does all the 'hard work' required for the traversal to work, while the next two patches adds a '--submodules' flag to git-archive and git-ls-tree as proof of concept. Lars Hjemli (3): tree.c: add support for traversal of submodules archive.c: enable traversal of submodules builtin-ls-tree: enable traversal of submodules archive.c | 2 ++ builtin-ls-tree.c | 23 ++++++++--------------- tree.c | 20 +++++++++++++++++--- tree.h | 1 + 4 files changed, 28 insertions(+), 18 deletions(-) -- 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