]> git.ipfire.org Git - thirdparty/git.git/commit
submodule--helper: add gitdir migration command
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Mon, 12 Jan 2026 18:46:27 +0000 (20:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jan 2026 19:56:56 +0000 (11:56 -0800)
commite14349d58eeae0eac23bf7f740d22f51fc90a49d
tree43f98c789332a4d7e9ba861b1d32501eff127328
parentc349bad72969d59758e1294b4e9964dccd967fa0
submodule--helper: add gitdir migration command

Manually running
"git config submodule.<name>.gitdir .git/modules/<name>"
for each submodule can be impractical, so add a migration command to
submodule--helper to automatically create configs for all submodules
as required by extensions.submodulePathConfig.

The command calls create_default_gitdir_config() which validates the
gitdir paths before adding the configs.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/extensions.adoc
builtin/submodule--helper.c
t/t7425-submodule-gitdir-path-extension.sh