]> git.ipfire.org Git - thirdparty/git.git/commit - git-submodule.sh
git submodule update: Introduce --recursive to update nested submodules
authorJohan Herland <johan@herland.net>
Wed, 19 Aug 2009 01:45:23 +0000 (03:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Aug 2009 05:59:12 +0000 (22:59 -0700)
commitb13fd5c1a2bd450cdf7b853e0c4861f361882a18
tree018a5a1d768bc24e4a84c6ad32da32d202adf3df
parent15fc56a853648c60697df691c5cd8a11ad718611
git submodule update: Introduce --recursive to update nested submodules

In very large and hierarchically structured projects, one may encounter
nested submodules. In these situations, it is valuable to not only update
the submodules in the current repo (which is what is currently done by
'git submodule update'), 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 update'
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