From: Dave Borowitz Date: Thu, 29 Dec 2011 17:08:16 GMT Subject: Re: git alias question Message-ID: In-Reply-To: On Wed, Dec 28, 2011 at 17:27, Michael Horowitz 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= git ldiff", but that's not very helpful.