Re: [Bug] Porcelain allows creation of '@' branch
- From
- Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
- Date
- Oct 16, 2026, 18:21 UTC
- Message-ID
- <d7450b0c-89ad-4963-9229-198f40cf72c1@app.fastmail.com>
- In-Reply-To
- <CALnO6CA7vxpmhVB3pi3gpVcbtCS_yHtA+a1Ud25P00JDAqboAA@mail.gmail.com>
On Fri, Oct 16, 2026, at 20:09, D. Ben Knoble wrote:
Show 27 quoted lines
> On Fri, Oct 16, 2026 at 11:35 AM Junio C Hamano <gitster@pobox.com> wrote:
>>
>> Bence Csókás <bence.csokas@arm.com> writes:
>>
>> > On 2026. 09. 03. 14:35, Bence Csókás wrote:
>>>>>[snip]
>> >> Bence
>> >
>> > P.S.:
>> >
>> > $ history | grep 'git .*@' | wc -l
>> > 74
>> > $ history | grep HEAD | wc -l
>> > 0
>> >
>> > ;)
>>
>> You have some unlearning of a bad habit to do, then ;-)
>
> Phaw! What's good (short and easy to type) for interactive use may not
> be great for scripts, sure, (in which case spelling out long options,
> writing HEAD, etc., is advisable).
>
> But shorthands are convenient day-to-day. What's a bad habit about that?
>
> (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]
🔗 1: https://lore.kernel.org/git/xmqqy12z7eti.fsf@gitster.g/