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

Re: [PATCH] git-reset.txt: Use uniform HEAD~N notation in all examples

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 1, 2007, 09:40 UTC
Message-ID
<7vabs6u3jt.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<hcmesrse.fsf@cante.net>
Jari Aalto <jari.aalto@cante.net> writes:
Show 9 quoted lines
> Like:
>
>     HEAD, HEAD~1, HEAD~2
>
> If the syntax is changed in the middle (as it was in manual page),
> that interrupts the kognitive flow of reading.
>
>     HEAD, HEAD^, HEAD~2
>

I still would prefer to teach people HEAD^ earlier. If you _REALLY_ insist, I can live with spelling the HEAD~2 as HEAD^^ for consistency.

Wasn't with you that earlier I discussed that very basic things such as revision naming and range notation should be moved from rev-list documentation to more central place, and sructure the documentation in such a way that these should be read even before individual manual pages are consulted? If we follow that, then by the time people read these examples, they _ought_ to know that HEAD~1 is a longer-to-type way to say HEAD^ already.

Previous: Jari AaltoNext: Shawn Bohrer
Message 4 of 7 in “git-reset.txt: Use uniform HEAD~N notation in all examples”
  1. git-reset.txt: Use uniform HEAD~N notation in all examplesJari Aalto, Aug 31, 2007
  2. Junio C HamanoAug 31, 2007
  3. Jari AaltoSep 1, 2007
  4. Junio C HamanoSep 1, 2007
  5. Shawn BohrerSep 1, 2007
  6. Jari AaltoSep 1, 2007
  7. Miles BaderSep 3, 2007

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.