]> git.99rst.org Git - git.git/commit
submodule--helper: refactor resolve_relative_url() helper
authorAtharva Raykar <redacted>
Tue, 10 Aug 2021 11:46:34 +0000 (17:16 +0530)
committerJunio C Hamano <redacted>
Tue, 10 Aug 2021 18:45:11 +0000 (11:45 -0700)
commitab6f23b75129bc20681c0941cdd01d2694bc54f4
tree23a93ee459f04a476d1e8deba36950a5cc64ca58
parent6baf4e4da44e8412d61118c5f35f383b679462ca
submodule--helper: refactor resolve_relative_url() helper

Refactor the helper function to resolve a relative url, by reusing the
existing `compute_submodule_clone_url()` function.

`compute_submodule_clone_url()` performs the same work that
`resolve_relative_url()` is doing, so we eliminate this code repetition
by moving the former function's definition up, and calling it inside
`resolve_relative_url()`.

Signed-off-by: Atharva Raykar <redacted>
Mentored-by: Christian Couder <redacted>
Mentored-by: Shourya Shukla <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/submodule--helper.c
git clone https://git.99rst.org/PROJECT