From: Alex Riesen <raa.lkml@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] warn use of "git diff A..B"
Date: Sun, 27 Mar 2011 22:03:11 +0200 [thread overview]
Message-ID: <AANLkTikQB_2bapZXOyANrO1fsKGs4r6HP1TOuisZXfnr@mail.gmail.com> (raw)
In-Reply-To: <7vei5xcxzm.fsf@alter.siamese.dyndns.org>
On Wed, Mar 23, 2011 at 22:45, Junio C Hamano <gitster@pobox.com> wrote:
> "git diff" (and "diff-tree") accepts a range notation "A..B" from the
> command line to specify the two endpoints to be compared; the right way to
> spell this would be "git diff A B". This is merely a historical accident
> that comes from the fact that "git log" family of commands and "git diff"
> happens to share some code in their command line parsers.
>
> It was fine for people who are used to seeing "git diff A..B" and silently
> translating it to "git diff A B" in their head, but it made things hard
> for new people. It is easy to mistakenly think that "git diff A..B" has
> some similarity with "git log A..B" (there isn't).
I like the dot-dot notation a lot.
next prev parent reply other threads:[~2011-03-27 20:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-23 21:36 [PATCH] diff: remove dead code that flips arguments order Junio C Hamano
2011-03-23 21:45 ` [PATCH] warn use of "git diff A..B" Junio C Hamano
2011-03-24 15:44 ` Jakub Narebski
2011-03-25 8:27 ` Johannes Sixt
2011-03-24 18:11 ` Jay Soffian
2011-03-24 18:16 ` Jay Soffian
2011-03-24 18:33 ` Junio C Hamano
2011-03-25 9:06 ` Ævar Arnfjörð Bjarmason
2011-03-27 20:03 ` Alex Riesen [this message]
2011-03-28 16:53 ` Junio C Hamano
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=AANLkTikQB_2bapZXOyANrO1fsKGs4r6HP1TOuisZXfnr@mail.gmail.com \
--to=raa.lkml@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).