Add --depth to submodule update/add
commit275cd184d52b5b81cb89e4ec33e540fb2ae61c1f
authorFredrik Gustafsson <iveqy@iveqy.com>
Tue, 2 Jul 2013 21:42:56 +0000 (2 23:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Jul 2013 17:33:32 +0000 (3 10:33 -0700)
treebbc8d455ea6b67d31c4c2079eada1e7dcf9d927f
parentedca4152560522a431a51fc0a06147fc680b5b18
Add --depth to submodule update/add

Add the --depth option to the add and update commands of "git submodule",
which is then passed on to the clone command. This is useful when the
submodule(s) are huge and you're not really interested in anything but
the latest commit.

Tests are added and some indention adjustments were made to conform to the
rest of the testfile on "submodule update can handle symbolic links in pwd".

Signed-off-by: Fredrik Gustafsson <iveqy@iveqy.com>
Acked-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt
git-submodule.sh
t/t7400-submodule-basic.sh
t/t7406-submodule-update.sh