]> git.ipfire.org Git - thirdparty/git.git/commit - git-submodule.sh
git submodule foreach: Add --recursive to recurse into nested submodules
authorJohan Herland <johan@herland.net>
Wed, 19 Aug 2009 01:45:22 +0000 (03:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Aug 2009 05:57:37 +0000 (22:57 -0700)
commit15fc56a853648c60697df691c5cd8a11ad718611
treec5705bc5373e9d4552788ecb6decc60d279b7aa2
parent9aec7e0ba69334cf9bfc6bca6abbea7e84d676b2
git submodule foreach: Add --recursive to recurse into nested submodules

In very large and hierarchically structured projects, one may encounter
nested submodules. In these situations, it is valuable to not only operate
on all the submodules in the current repo (which is what is currently done
by 'git submodule foreach'), but also to operate on all submodules at all
levels (i.e. recursing into nested submodules as well).

This patch teaches the new --recursive option to the 'git submodule foreach'
command. The patch also includes documentation and selftests.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt
git-submodule.sh
t/t7407-submodule-foreach.sh