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
Jari Aalto <jari.aalto@cante.net>
Date
Sep 1, 2007, 20:40 UTC
Message-ID
<veauqfu0.fsf@cante.net>
In-Reply-To
<20070901150153.GD7422@mediacenter.austin.rr.com>
Shawn Bohrer <shawn.bohrer@gmail.com> writes:
Show 21 quoted lines
> On Sat, Sep 01, 2007 at 02:40:22AM -0700, Junio C Hamano wrote:
>
>> Jari Aalto <jari.aalto@cante.net> writes:
>> 
>> > 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.
>
> Well I am a new user to git and I didn't find the mixed notation
> confusing at all.  Perhaps this is because I read the tutorial first,
> then the git user manual which both explain this clearly.

Naturally one's learning path is naturally different. Did you come from other SCM/VCS before intorduced to git?

> In either case I think eliminating either notation from the man pages is
> a bad idea.

That was not proposed. There a mnay pages that use and shoudl use the ^ notations. I was proposing that only (git-COMMAND) were dealt with.

After all, the ^ very differento to what other SCM/VCSs use.
Jari
-- 
Welcome to FOSS revolution: we fix and modify until it shines
Previous: Shawn BohrerNext: Miles Bader
Message 6 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.