]> git.99rst.org Git - git.git/commit
submodule--helper: allow setting superprefix for init_submodule()
authorAtharva Raykar <redacted>
Sat, 5 Mar 2022 00:13:57 +0000 (16:13 -0800)
committerJunio C Hamano <redacted>
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 <redacted>
Mentored-by: Shourya Shukla <redacted>
Signed-off-by: Atharva Raykar <redacted>
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/submodule--helper.c
git clone https://git.99rst.org/PROJECT