From: Alex Riesen Date: Sun, 27 Mar 2011 20:03:11 GMT Subject: Re: [PATCH] warn use of "git diff A..B" Message-ID: In-Reply-To: <7vei5xcxzm.fsf@alter.siamese.dyndns.org> On Wed, Mar 23, 2011 at 22:45, Junio C Hamano 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.