Re: [PATCH] warn use of "git diff A..B"
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Mar 25, 2011, 09:06 UTC
- Message-ID
- <AANLkTim4aQQgm290Z+OfHd7+oz8jQ_UfWQdxPdG_6k-H@mail.gmail.com>
- In-Reply-To
- <7vei5xcxzm.fsf@alter.siamese.dyndns.org>
On Wed, Mar 23, 2011 at 22:45, Junio C Hamano <gitster@pobox.com> wrote:
I agree with Jakub. I often write something like this:
$ git log origin/master..origin/pu
$ ^log^diff
git diff origin/master..origin/puIt would be annoying to have that start to warn.
> + warning("Do not write 'git diff A..B' but write 'git diff A B'");
> + warning("diff is about two endpoints!");And in any case this warning is way too terse to give the user an idea of what this is about.