summaryrefslogtreecommitdiff
path: root/t/t7420-submodule-set-url.sh
diff options
context:
space:
mode:
authorLibravatar Atharva Raykar <raykar.ath@gmail.com>2021-08-10 17:16:37 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-08-10 11:45:11 -0700
commita6226fd772b1dfff87fa8dc040d97efa75a3721c (patch)
treee080c16a7af1c9ca343d0180f2dbbf81dcedca5f /t/t7420-submodule-set-url.sh
parentdir: libify and export helper functions from clone.c (diff)
downloadtgif-a6226fd772b1dfff87fa8dc040d97efa75a3721c.tar.xz
submodule--helper: convert the bulk of cmd_add() to C
Introduce the 'add' subcommand to `submodule--helper.c` that does all the work 'submodule add' past the parsing of flags. We also remove the constness of the sm_path field of the `add_data` struct. This is needed so that it can be modified by normalize_path_copy(). As with the previous conversions, this is meant to be a faithful conversion with no modification to the behaviour of `submodule add`. Signed-off-by: Atharva Raykar <raykar.ath@gmail.com> Mentored-by: Christian Couder <christian.couder@gmail.com> Helped-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Mentored-by: Shourya Shukla <periperidip@gmail.com> Based-on-patch-by: Shourya Shukla <periperidip@gmail.com> Based-on-patch-by: Prathamesh Chavan <pc44800@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7420-submodule-set-url.sh')
0 files changed, 0 insertions, 0 deletions