From: Harald Nordgren Date: Sun, 26 Apr 2026 08:21:06 GMT Subject: Re: [PATCH] remote: add --set-head option to 'git remote add' Message-ID: <20260426082106.11266-1-haraldnordgren@gmail.com> In-Reply-To: <20260425220629.GA28590@coredump.intra.peff.net> > It already does, doesn't it? Doing: > > $ git init > $ git remote add --fetch origin /path/to/some/repo > $ git for-each-ref > > shows an origin/HEAD link. > > Which I think is not too surprising, as it is just calling "git fetch" > under the hood. I think you are right! So maybe all of this new code is not needed at all. Harald