[PATCH 0/3] Implement 'git archive --submodules'
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- Jan 18, 2009, 10:53 UTC
- Message-ID
- <1232275999-14852-1-git-send-email-hjemli@gmail.com>
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