]> git.ipfire.org Git - thirdparty/git.git/commit
submodule--helper: allow setting superprefix for init_submodule()
authorAtharva Raykar <raykar.ath@gmail.com>
Sat, 5 Mar 2022 00:13:57 +0000 (16:13 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Mar 2022 00:39:12 +0000 (16:39 -0800)
commit3ce52cba5b283af1f5dbebfe43aeea5d3421dac6
treee194e8c239f489a88409299cdba7a45bde68701b
parent5312a850b882d5e4b61b3590a151d41d9a1e8767
submodule--helper: allow setting superprefix for init_submodule()

We allow callers of the `init_submodule()` function to optionally
override the superprefix from the environment.

We need to enable this option because in our conversion of the update
command that will follow, the '--init' option will be handled through
this API. We will need to change the superprefix at that time to ensure
the display paths show correctly in the output messages.

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Shourya Shukla <periperidip@gmail.com>
Signed-off-by: Atharva Raykar <raykar.ath@gmail.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c