Re: git alias question
- From
Dave Borowitz <dborowitz@google.com>
- Date
- Dec 29, 2011, 17:08 UTC
- Message-ID
- <CAD0k6qTp9sKCb==Jh1vuLuZoxx99Kt2Z=VAbjYbGaUE7nbOxdQ@mail.gmail.com>
- In-Reply-To
- <CAFLRbopjqW7OEWN4kxy+6Gb828h4zBC_h=4WiP-q1__LeezxUw@mail.gmail.com>
On Wed, Dec 28, 2011 at 17:27, Michael Horowitz <michael.horowitz@ieee.org> wrote:
> ldiff = "!git diff `git rev-list --reverse -n 2 HEAD -- $1` -- $1"
FWIW, you can also do this as: ldiff = log -p -1 --format=format: --
> ldifft = "!git difftool `git rev-list --reverse -n 2 HEAD -- $1` -- $1"
I don't know that you can do something equivalent with difftool. I suppose you could do the above with "GIT_EXTERNAL_DIFF=<some difftool wrapper> git ldiff", but that's not very helpful.