]> git.ipfire.org Git - thirdparty/git.git/commit
submodule-config.h: move check_submodule_url
authorVictoria Dye <vdye@github.com>
Thu, 18 Jan 2024 01:55:15 +0000 (01:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jan 2024 18:12:48 +0000 (10:12 -0800)
commit13320ff610b4083341175c4f8e636a1bc52145f5
tree13c29bcf8c127211ee46efa596c72e946f607b19
parent564d0252ca632e0264ed670534a51d18a689ef5d
submodule-config.h: move check_submodule_url

Move 'check_submodule_url' out of 'fsck.c' and into 'submodule-config.h' as
a public method, similar to 'check_submodule_name'. With the function now
accessible outside of 'fsck', it can be used in a later commit to extend
'test-tool submodule' to check the validity of submodule URLs as it does
with names in the 'check-name' subcommand.

Other than its location, no changes are made to 'check_submodule_url' in
this patch.

Signed-off-by: Victoria Dye <vdye@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c
submodule-config.c
submodule-config.h