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

Re: Should `@` be really a valid git tag name?

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 18, 2021, 00:25 UTC
Message-ID
<xmqqh7eig25r.fsf@gitster.g>
In-Reply-To
<CAPUEspg3982Wk7vdO-vFimvyApzYwUtsryZdLt1=sLfrrYngyg@mail.gmail.com>
Carlo Arenas <carenas@gmail.com> writes:
Show 17 quoted lines
> On Fri, Sep 17, 2021 at 4:06 PM Junio C Hamano <gitster@pobox.com> wrote:
>>
>> Carlo Marcelo Arenas Belón <carenas@gmail.com> writes:
>>
>> > I was leaning towards something like that plus a Documentation update, but
>> > noticed that the current behaviour was inconsistent, and the confusion
>> > pointed out by Junio seems to indicate it is better if fully restricted.
>>
>> That is a bad move, as existing repositories may have a ref with
>> such a name.
> ...
>> If we tighten anything retroactively, we probably should forgid '@'
>> short-hand that stands for HEAD, I would think.
>
> regardless of the merits of that feature, it has been in git since
> ~v1.8.4, so its removal will also be breaking the user experience
> IMHO.
I know, but it is lessor of two evils.

I think it is OK to forbid at the higher level Porcelain, while still allowing read access, but keep the door open for plumbing, just like Peff suggested.

Previous: Carlo ArenasNext: Carlo Marcelo Arenas Belón
Message 8 of 10 in “Should `@` be really a valid git tag name?”
  1. gitmailinglist.bentolor@xoxy.netSep 17, 2021
  2. Carlo ArenasSep 17, 2021
  3. Junio C HamanoSep 17, 2021
  4. Jeff KingSep 17, 2021
  5. Carlo Marcelo Arenas BelónSep 17, 2021
  6. Junio C HamanoSep 17, 2021
  7. Carlo ArenasSep 18, 2021
  8. Junio C HamanoSep 18, 2021
  9. Carlo Marcelo Arenas BelónSep 18, 2021
  10. Chris TorekSep 18, 2021

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.