]> git.ipfire.org Git - thirdparty/git.git/commit
refs: refactor `resolve_gitlink_ref()` to accept a repository
authorPatrick Steinhardt <ps@pks.im>
Fri, 17 May 2024 08:18:39 +0000 (10:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 May 2024 17:33:38 +0000 (10:33 -0700)
commite19488a60aab022ca4c8d32d6629c04ce94f2779
treec1d38f4475913be4d2033a2cd902d2f53a61cc35
parent965f8991e59d84ba1b86e528f9c27852e746fa90
refs: refactor `resolve_gitlink_ref()` to accept a repository

In `resolve_gitlink_ref()` we implicitly rely on `the_repository` to
look up the submodule ref store. Now that we can look up submodule ref
stores for arbitrary repositories we can improve this function to
instead accept a repository as parameter for which we want to resolve
the gitlink.

Do so and adjust callers accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c
builtin/submodule--helper.c
builtin/update-index.c
combine-diff.c
diff-lib.c
dir.c
object-file.c
read-cache.c
refs.c
refs.h
unpack-trees.c