]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/remote: determine whether refs need renaming early on
authorPatrick Steinhardt <ps@pks.im>
Thu, 31 Jul 2025 14:56:52 +0000 (16:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Aug 2025 21:19:30 +0000 (14:19 -0700)
commit08e6a7add4678662d929718e8aa80d2505352cfd
treec1ac8270a7c566f990f173a5d781cf8fe05f4606
parent376d7f1a11a52bc3f2f4ce74557536ac2195ce5f
builtin/remote: determine whether refs need renaming early on

When renaming a remote we may have to also rename remote refs in case
the refspec changes. Pull out this computation into a separate loop.
While that seems nonsensical right now, it'll help us in a subsequent
commit where we will prepare the reference transaction before we rewrite
the configuration.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c