Re: [Bug] Porcelain allows creation of '@' branch
- From
- Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
- Date
- Oct 17, 2026, 16:43 UTC
- Message-ID
- <3d9463a2-d099-4f9d-a380-4c5036da1c20@app.fastmail.com>
- In-Reply-To
- <xmqqh5ilfpfj.fsf@gitster.g>
On Fri, Oct 16, 2026, at 20:52, Junio C Hamano wrote:
Show 11 quoted lines
> "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
>
>>> (Besides, the OP's grep also counts uses of
>>> @{upstream}/@{u}/@{push}/reflog syntax/etc.)
>>
>> I set up `git symbolic-ref refs/H HEAD` after my first `@`
>> conversation.[1]
>
> That is funny and clever, but unfortunately it does not help solving
> the problem that the @-shorthand "conveniently" squats there to make
> your use of a branch named "@" hard or impossible.It replaces my want to use `@` which means that what you wrote back then:[1]
JCH> I suspect that it is much more productive to deprecate and remove JCH> "@" that is a built-in synomym for HEAD (but "refs/remotes/origin/@" JCH> does not act as a synonym for "refs/remotes/origin/HEAD"). [...]
Would not affect me. (Not that I believe that it would happen.)
[1]: https://lore.kernel.org/git/xmqqy12z7eti.fsf@gitster.g/#t