summaryrefslogtreecommitdiffstats
path: root/dir.h
diff options
context:
space:
mode:
authorAtharva Raykar <raykar.ath@gmail.com>2021-08-10 13:46:35 +0200
committerJunio C Hamano <gitster@pobox.com>2021-08-10 20:45:11 +0200
commit0c61041ed6778db86184d7a0d9759085f3cb9a82 (patch)
tree32f80601fc7a7e2de83a12f371e452e7929a3134 /dir.h
parentsubmodule--helper: refactor resolve_relative_url() helper (diff)
downloadgit-0c61041ed6778db86184d7a0d9759085f3cb9a82.tar.xz
git-0c61041ed6778db86184d7a0d9759085f3cb9a82.zip
submodule--helper: remove repeated code in sync_submodule()
This part of `sync_submodule()` is doing the same thing that `compute_submodule_clone_url()` is doing. Let's reuse that helper here. Note that this change adds a small overhead where we allocate and free the 'remote' twice, but that is a small price to pay for the higher level of abstraction we get. 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 'dir.h')
0 files changed, 0 insertions, 0 deletions