Web lists-archives.com

Re: Deprecating git diff ..; dealing with other ranges




On Wed, Mar 13, 2019 at 12:26 AM Andreas Schwab <schwab@xxxxxxxxxxxxxx> wrote:
>
> On Mär 12 2019, Junio C Hamano <gitster@xxxxxxxxx> 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