From: Jari Aalto <jari.aalto@cante.net>
To: git@vger.kernel.org
Subject: Re: [PATCH] git-reset.txt: Use uniform HEAD~N notation in all examples
Date: Sat, 01 Sep 2007 11:39:45 +0300 [thread overview]
Message-ID: <hcmesrse.fsf@cante.net> (raw)
In-Reply-To: 7vy7frzfzg.fsf@gitster.siamese.dyndns.org
Junio C Hamano <gitster@pobox.com> writes:
> Jari Aalto <jari.aalto@cante.net> writes:
>
>> The manual mixed both caret(HEAD^) and tilde (HEAD~N) notation in
>> examples. This may be xconfusing to new users. The "counting" notation
>> HEAD~N likely to be grasped more easily because it allow successive
>> numbering 1, 2, 3 etc.
>
> I am mildly negative on this change.
>
> Referring to (rather, "having to refer to" to fix mistakes) the
> previous commit happens far more often than referring to an
> ancestor of an arbitrary generation away (i.e. HEAD~$n). I
> think it is a better idea to expose users early on that HEAD^
> notation which is shorter to type.
If the page contains/combines many different ways of doing things,
this creates confusion, especially if the distictions are not explained.
And it would be unnecessary to explain the HEAD^ and HEAD~1 similarities
in every page where these two get mixed.
PRICPLES:
1. The novice user is best served by making things simple and uniform.
2. Utilize concepts that may already be familar. E.g. other VCS/SCM tools
have concept of counting back revisions with negative numbers: -1,
-2, -3; so following this same idea in git manual pages would
already rang associated bells.
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'm sure when user progresses with his learning, the differences or
similarities of the notations become no-op.
But manual pages are served for wide audience. They are most
important to new users.
I hope we could strive for KISS is possible.
--
Welcome to FOSS revolution: we fix and modify until it shines
next prev parent reply other threads:[~2007-09-01 8:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-31 17:47 [PATCH] git-reset.txt: Use uniform HEAD~N notation in all examples Jari Aalto
2007-08-31 19:00 ` Junio C Hamano
2007-09-01 8:39 ` Jari Aalto [this message]
2007-09-01 9:40 ` Junio C Hamano
2007-09-01 15:01 ` Shawn Bohrer
2007-09-01 20:40 ` Jari Aalto
2007-09-03 2:03 ` Miles Bader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=hcmesrse.fsf@cante.net \
--to=jari.aalto@cante.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.