diff options
author | Atharva Raykar <raykar.ath@gmail.com> | 2021-08-10 17:16:34 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-10 11:45:11 -0700 |
commit | ab6f23b75129bc20681c0941cdd01d2694bc54f4 (patch) | |
tree | 23a93ee459f04a476d1e8deba36950a5cc64ca58 /protocol.c | |
parent | submodule--helper: add options for compute_submodule_clone_url() (diff) | |
download | tgif-ab6f23b75129bc20681c0941cdd01d2694bc54f4.tar.xz |
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 <raykar.ath@gmail.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Shourya Shukla <periperidip@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'protocol.c')
0 files changed, 0 insertions, 0 deletions