submodule: port submodule subcommand 'deinit' from shell to C
authorPrathamesh Chavan <pc44800@gmail.com>
Sun, 14 Jan 2018 21:15:29 +0000 (02:45 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Jan 2018 19:29:50 +0000 (11:29 -0800)
commit2e612731b55f1a83fb5b7f4ecb9391f0cba63cb2
treea96f1258b48ead23a571205b3b81c2e4c440dc65
parent13424764db3273091d136bd470cf14852255c98c
submodule: port submodule subcommand 'deinit' from shell to C

The same mechanism is used even for porting this submodule
subcommand, as used in the ported subcommands till now.
The function cmd_deinit in split up after porting into four
functions: module_deinit(), for_each_listed_submodule(),
deinit_submodule() and deinit_submodule_cb().

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Prathamesh Chavan <pc44800@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
git-submodule.sh