git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] branch: delete now accepts '-' as branch name

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 21, 2022, 17:13 UTC
Message-ID
<xmqqwnhota5q.fsf@gitster.g>
In-Reply-To
<220221.86pmngb22e.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 19 quoted lines
>> Continuing the "thinking aloud" a bit, I _think_ this tells us these
>> things:
>>
>>  * @{-1} has way too many letters to type to be liked by users, who
>>    won't learn or remember what they do not appreciate (and do not
>>    blame them---it is a bad notation).
>>
>>  * @{-<n>} may have been a generalized way that satisfied geeky mind
>>    while being implemented, but the users only need the "last one"
>>    and no such generalization.
>>
>> If it is too late for a more easy-to-type-and-pleasant-to-eyes
>> notation, perhaps "@-", that does not have downsides of "-" or
>> "@{-1}", I have to wonder.
>
> I too find the syntax really annoying to type.
>
> I wonder if we couldn't say that:
> ...

We could, but I do not think I like any of it, except for adding "@-". We learned that we do not need @{-4} generalization and people only want "the last one" with nothing else. It is repeating the same mistake without learning any from the lesson to take any random string that follows @ as if it is inside @{}, I am afraid.

P.S. It seems it is holiday around here and I hear it is at GitHub, too, so I expect the day to be slow and my presence may be sporadic.

Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 9 of 11 in “branch: delete now accepts '-' as branch name”
  1. branch: delete now accepts '-' as branch nameErlend Egeberg Aasland via GitGitGadget, Feb 16, 2022
  2. Junio C HamanoFeb 16, 2022
  3. Eric SunshineFeb 16, 2022
  4. Junio C HamanoFeb 16, 2022
  5. Erlend AaslandFeb 16, 2022
  6. Eric SunshineFeb 17, 2022
  7. Junio C HamanoFeb 17, 2022
  8. Ævar Arnfjörð BjarmasonFeb 21, 2022
  9. Junio C HamanoFeb 21, 2022
  10. Ævar Arnfjörð BjarmasonFeb 21, 2022
  11. Erlend AaslandFeb 22, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.