]> git.ipfire.org Git - thirdparty/git.git/commit - git-submodule.sh
submodule: teach set-url subcommand
authorDenton Liu <liu.denton@gmail.com>
Tue, 29 Oct 2019 17:01:52 +0000 (10:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Oct 2019 03:48:45 +0000 (12:48 +0900)
commit26b061007c1259ed4692554994961dd26874e63e
tree88e9e2272c173351cf26df641cb19de68d16ef99
parent566a1439f6f56c2171b8853ddbca0ad3f5098770
submodule: teach set-url subcommand

Currently, in the event that a submodule's upstream URL changes, users
have to manually alter the URL in the .gitmodules file then run
`git submodule sync`. Let's make that process easier.

Teach submodule the set-url subcommand which will automatically change
the `submodule.$name.url` property in the .gitmodules file and then run
`git submodule sync` to complete the process.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt
contrib/completion/git-completion.bash
git-submodule.sh
t/t7420-submodule-set-url.sh [new file with mode: 0755]