]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/submodule--helper.c
submodule--helper update-clone: check for --filter and --init
authorGlen Choo <chooglen@google.com>
Sat, 5 Mar 2022 00:14:01 +0000 (16:14 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Mar 2022 00:39:13 +0000 (16:39 -0800)
commitc9d256249375c7b8a1773139791448860b5789ff
tree3e32e9d26cab880b5f21ddec0df6c19dd34e4508
parent104744f91d9d04763ab2df06308bfa3c0b464f84
submodule--helper update-clone: check for --filter and --init

"git submodule update --filter" also requires the "--init" option. Teach
update-clone to do this usage check in C and remove the check from
git-submodule.sh.

In addition, change update-clone's usage string so that it teaches users
about "git submodule update" instead of "git submodule--helper
update-clone" (the string is copied from git-submodule.sh). This should
be more helpful to users since they don't invoke update-clone directly.

Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
git-submodule.sh