]> git.ipfire.org Git - thirdparty/git.git/commit
submodule--helper: refactor module_clone()
authorAtharva Raykar <raykar.ath@gmail.com>
Sat, 10 Jul 2021 07:48:00 +0000 (13:18 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jul 2021 19:06:21 +0000 (12:06 -0700)
commita98b02c11289879868dd0d5f80e894d8d01dc73b
tree62147d155c74143fa657f3c6fcaaed09ab7eb46c
parent0008d12284ef916b53341c2aadccdc017ff07c7a
submodule--helper: refactor module_clone()

Separate out the core logic of module_clone() from the flag
parsing---this way we can call the equivalent of the `submodule--helper
clone` subcommand directly within C, without needing to push arguments
in a strvec.

Signed-off-by: Atharva Raykar <raykar.ath@gmail.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Shourya Shukla <periperidip@gmail.com>
Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c