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

Re: [PATCHv2 2/3] revisions.txt: structure with a labelled list

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 3, 2011, 19:01 UTC
Message-ID
<7vvcyvcg6o.fsf@alter.siamese.dyndns.org>
In-Reply-To
<b37095f8802face1fc7920359cf2db3536a5d3a2.1301649867.git.git@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
> -* The special construct '@\{-<n>\}' means the <n>th branch checked out
> +'@\{-<n>\}', e.g. '@\{-1\}'::
> +  The special construct '@\{-<n>\}' means the <n>th branch checked out
>    before the current one.

This is outside the scope of this patch, but there is nothing _special_ about @{-<n>} at all. When it appeared it might have been special but not anymore. We should reserve the word "special" only for "special" cases.

e.g. this one is perfectly fine:
Show 7 quoted lines
> +'<rev>{caret}', e.g. 'HEAD{caret}, v1.5.1{caret}0'::
> +  A suffix '{caret}' to a revision parameter means the first parent of
>    that commit object.  '{caret}<n>' means the <n>th parent (i.e.
> +  '<rev>{caret}'
> +  is equivalent to '<rev>{caret}1').  As a special rule,
> +  '<rev>{caret}0' means the commit itself and is used when '<rev>' is the
>    object name of a tag object that refers to a commit object.

A^1, A^2,..., A^$n all all parents of A; A^0 is not a parent of A but we still accept it as a special rule.

Previous: Michael J GruberNext: Michael J Gruber
Message 17 of 20 in “revisions.txt improvements”
  1. 0/3 revisions.txt improvementsMichael J Gruber, Mar 31, 2011
  2. 1/3 revisions.txt: consistent use of quotesMichael J Gruber, Mar 31, 2011
  3. 2/3 revisions.txt: structure with a labelled listMichael J Gruber, Mar 31, 2011
  4. Jakub NarebskiMar 31, 2011
  5. Michael J GruberApr 1, 2011
  6. 3/3 revisions.txt: language improvementsMichael J Gruber, Mar 31, 2011
  7. Bert WesargMar 31, 2011
  8. Michael J GruberMar 31, 2011
  9. 0/3 revisions.txt improvementsMichael J Gruber, Apr 1, 2011
  10. 0/3 revisions.txt improvementsMichael J Gruber, Apr 4, 2011
  11. Junio C HamanoApr 4, 2011
  12. 1/3 revisions.txt: consistent use of quotesMichael J Gruber, Apr 4, 2011
  13. 2/3 revisions.txt: structure with a labelled listMichael J Gruber, Apr 4, 2011
  14. 3/3 revisions.txt: language improvementsMichael J Gruber, Apr 4, 2011
  15. 1/3 revisions.txt: consistent use of quotesMichael J Gruber, Apr 1, 2011
  16. 2/3 revisions.txt: structure with a labelled listMichael J Gruber, Apr 1, 2011
  17. Junio C HamanoApr 3, 2011
  18. 3/3 revisions.txt: language improvementsMichael J Gruber, Apr 1, 2011
  19. Junio C HamanoApr 1, 2011
  20. Michael J GruberApr 3, 2011

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.