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

Re: [PATCH v3] Add new @ shortcut for HEAD

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 1, 2013, 23:14 UTC
Message-ID
<CAMP44s0TtwBL=0MxU2C8QUkgA61KauPTcctH9TzQ_DdTaxh0eg@mail.gmail.com>
In-Reply-To
<7v4nem488y.fsf@alter.siamese.dyndns.org>
On Wed, May 1, 2013 at 5:59 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> Exactly, because ref@something is used for operations on a ref. If
>> 'ref' is missing, it only makes sense to use HEAD (or something like
>> that), and if 'something' is missing, it only makes sense to make it a
>> no-op, but since we don't want to forbid refs with names like
>> 'master@'. That's the reason why '@' makes sense, and not any other
>> character.
>
> Yes.  My typo made it look as if I meant to say '@' was a bad
> choice, but we are in agreement that '@' is better than any other
> random choice of single punctuation letter.
Yeah, we agree.
> It is just the "strip this, strip that" explanation, which is not
> technically correct, does _not_ have to be our justification for
> picking '@' as a short-hand for HEAD.
The point is that it follows from @something -> @.
-- 
Felipe Contreras
Previous: Junio C HamanoNext: Felipe Contreras
Message 11 of 14 in “Add new @ shortcut for HEAD”
  1. Add new @ shortcut for HEADFelipe Contreras, May 1, 2013
  2. Eric SunshineMay 1, 2013
  3. Thomas AdamMay 1, 2013
  4. "lets" vs. "let's" (was: Re: [PATCH v3] Add new @ shortcut for HEAD)Marc Branchaud, May 1, 2013
  5. Junio C HamanoMay 1, 2013
  6. Junio C HamanoMay 1, 2013
  7. Felipe ContrerasMay 1, 2013
  8. Junio C HamanoMay 1, 2013
  9. Felipe ContrerasMay 1, 2013
  10. Junio C HamanoMay 1, 2013
  11. Felipe ContrerasMay 1, 2013
  12. Felipe ContrerasMay 2, 2013
  13. Junio C HamanoMay 6, 2013
  14. Junio C HamanoMay 1, 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.