Re: Deprecating git diff ..; dealing with other ranges
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 13, 2019, 01:20 UTC
- Message-ID
- <CACsJy8DaTE3fbLZCbwW6XY4Z_2OjczOZROYiWsMPQrni_ybhZg@mail.gmail.com>
- In-Reply-To
- <87va0orop4.fsf@igel.home>
On Wed, Mar 13, 2019 at 12:26 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
Show 9 quoted lines
> > On Mär 12 2019, Junio C Hamano <gitster@pobox.com> wrote: > > > I however think it may be worth making sure that our docs do not > > encourage "diff A..B" and teach "diff A B" when comparing two > > endpoints. That can be done without changing anything in the code. > > The nice thing about "diff A..B" is that you can c&p the output from the > fetch run without the need to edit it.
I do this copy&paste too though I think in this case we could improve something to not copy&paste in the first place.
A..B from fetch is the same as branch@{1}..branch. If we have some shortcut similar to ^! but for reflog, that would be perfect (the branch part does not require much typing with tab completion).
-- Duy