Thread View: linux.kernel.git
8 messages
8 total messages
Started by Bence Csókás
Thu, 15 Oct 2026 07:58
Re: [Bug] Porcelain allows creation of '@' branch
Author: Bence Csókás
Date: Thu, 15 Oct 2026 07:58
Date: Thu, 15 Oct 2026 07:58
31 lines
16987 bytes
16987 bytes
On 2026. 09. 03. 14:35, Bence Csókás wrote:
> On 2026. 09. 03. 10:38, Kristoffer Haugsbakk wrote:
>> Not a bug (2024) https://lore.kernel.org/git/xmqqy12z7eti.fsf@gitster.g/
>>
>> I suspect that it is much more productive to deprecate and remove
>> "@" that is a built-in synomym for HEAD (but "refs/remotes/origin/@"
>> does not act as a synonym for "refs/remotes/origin/HEAD"). [...]
> I would not want to see @ removed, I have abandoned using HEAD years
> ago, too much typing (especially if you want to express more complex
> things, e.g. `git range-diff long-branch-name{^..otherbranch,..@}`, to
> pick an example out of my bash-history).
>
> Bence
P.S.:
$ history | grep 'git .*@' | wc -l
74
$ history | grep HEAD | wc -l
0
;)
Bence
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Re: [Bug] Porcelain allows creation of '@' branch
Author: Junio C Hamano
Date: Fri, 16 Oct 2026 15:35
Date: Fri, 16 Oct 2026 15:35
27 lines
10857 bytes
10857 bytes
Bence Csókás <bence.csokas@arm.com> writes:
> On 2026. 09. 03. 14:35, Bence Csókás wrote:
>> On 2026. 09. 03. 10:38, Kristoffer Haugsbakk wrote:
>>> Not a bug (2024) https://lore.kernel.org/git/xmqqy12z7eti.fsf@gitster.g/
>>>
>>> I suspect that it is much more productive to deprecate and remove
>>> "@" that is a built-in synomym for HEAD (but "refs/remotes/origin/@"
>>> does not act as a synonym for "refs/remotes/origin/HEAD"). [...]
>> I would not want to see @ removed, I have abandoned using HEAD years
>> ago, too much typing (especially if you want to express more complex
>> things, e.g. `git range-diff long-branch-name{^..otherbranch,..@}`, to
>> pick an example out of my bash-history).
>>
>> 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 ;-)
Re: [Bug] Porcelain allows creation of '@' branch
Author: "D. Ben Knoble"
Date: Fri, 16 Oct 2026 18:09
Date: Fri, 16 Oct 2026 18:09
45 lines
10855 bytes
10855 bytes
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:
> >> On 2026. 09. 03. 10:38, Kristoffer Haugsbakk wrote:
> >>> Not a bug (2024) https://lore.kernel.org/git/xmqqy12z7eti.fsf@gitster.g/
> >>>
> >>> I suspect that it is much more productive to deprecate and remove
> >>> "@" that is a built-in synomym for HEAD (but "refs/remotes/origin/@"
> >>> does not act as a synonym for "refs/remotes/origin/HEAD"). [...]
> >> I would not want to see @ removed, I have abandoned using HEAD years
> >> ago, too much typing (especially if you want to express more complex
> >> things, e.g. `git range-diff long-branch-name{^..otherbranch,..@}`, to
> >> pick an example out of my bash-history).
> >>
> >> 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.)
--
D. Ben Knoble
Re: [Bug] Porcelain allows creation of '@' branch
Author: "Kristoffer Haugsbakk"
Date: Fri, 16 Oct 2026 18:21
Date: Fri, 16 Oct 2026 18:21
36 lines
11003 bytes
11003 bytes
On Fri, Oct 16, 2026, at 20:09, D. Ben Knoble wrote:
> 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/
Re: [Bug] Porcelain allows creation of '@' branch
Author: Junio C Hamano
Date: Fri, 16 Oct 2026 18:40
Date: Fri, 16 Oct 2026 18:40
9 lines
10315 bytes
10315 bytes
"D. Ben Knoble" <ben.knoble@gmail.com> writes: > But shorthands are convenient day-to-day. What's a bad habit about that? A shorthand may be convenient, but not all "convenient" things are automatically good. A poorly designed, ill-thought-out shorthand that forbids a branch whose name follows a set of clearly defined rules perfectly well is good example.
Re: [Bug] Porcelain allows creation of '@' branch
Author: Junio C Hamano
Date: Fri, 16 Oct 2026 18:52
Date: Fri, 16 Oct 2026 18:52
12 lines
10409 bytes
10409 bytes
"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.
Re: [Bug] Porcelain allows creation of '@' branch
Author: "Kristoffer Haugsbakk"
Date: Sat, 17 Oct 2026 16:43
Date: Sat, 17 Oct 2026 16:43
24 lines
11076 bytes
11076 bytes
On Fri, Oct 16, 2026, at 20:52, Junio C Hamano wrote:
> "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
Re: [Bug] Porcelain allows creation of '@' branch
Author: Junio C Hamano
Date: Sat, 17 Oct 2026 16:59
Date: Sat, 17 Oct 2026 16:59
15 lines
10666 bytes
10666 bytes
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes: > 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.) I do not think it would happen, either. There are many things in Git that I have publicly said are poorly designed, but that we cannot correct due to heavy inertia.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads