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

Re: Another use of "@"?

From
Duy Nguyen <pclouds@gmail.com>
Date
May 4, 2013, 03:48 UTC
Message-ID
<CACsJy8DkDes5SdvU7W1kg24w3VBaQz9caZnkyy6iWFiYqw6Saw@mail.gmail.com>
In-Reply-To
<CACsJy8DsrY9ybLoCAo35Puc7oR41Kda9nKjBXL147qN-3xrMRA@mail.gmail.com>
On Sat, May 4, 2013 at 10:26 AM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 14 quoted lines
> On Sat, May 4, 2013 at 5:09 AM, Matthieu Moy
> <Matthieu.Moy@grenoble-inp.fr> wrote:
>> The A/@ could make sense, but I'm wondering whether we're taking the
>> direction of implementing some kind of Brainfuck dialect in Git revision
>> specifiers. I'm not sure we want to add more special characters here and
>> there with subtly different meanings (@ = HEAD, @{1} = HEAD@{1}, A/@ =
>> A/$(git symbolic-ref --short HEAD)).
>
> Another subtle overloading of @ that might be desirable (althought
> might be achievable another way). "git log -g"  is equal to "git log
> -g HEAD" but there is no easy way (that I know of) to do "git log -g
> $(git symbolic-ref HEAD)". "@" could fill the inconvenient spot here,
> I think. Alias is no good because I won't be able to add extra
> options.

I wouldn't mind typing <ref>@{link} that does "git symbolic-ref <ref>", though. Because ref is optional, "git log -g @{link}" is not bad. "link" is probably not a good name for this. -- Duy

Previous: Duy NguyenNext: Felipe Contreras
Message 8 of 11 in “Another use of "@"?”
  1. Duy NguyenMay 3, 2013
  2. Junio C HamanoMay 3, 2013
  3. Junio C HamanoMay 3, 2013
  4. Duy NguyenMay 3, 2013
  5. Thomas RastMay 3, 2013
  6. Matthieu MoyMay 3, 2013
  7. Duy NguyenMay 4, 2013
  8. Duy NguyenMay 4, 2013
  9. Felipe ContrerasMay 3, 2013
  10. Ramkumar RamachandraMay 4, 2013
  11. Matthieu MoyMay 4, 2013

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.