How to show diff for a rev?

Martin Packman martin.packman at canonical.com
Wed Jun 18 11:37:53 UTC 2014


On 18/06/2014, John Meinel <john at arbash-meinel.com> wrote:
>
> So the only syntax that reliably gives me what I want is:
>  git dif 348c104^ 348c104
> I was hoping there would be a better shortcut for it. Does anyone have some
> more voodoo that I could use to avoid having to type the same thing twice?

That's what I've always done. Often have shas (or sha heads) on my clipboard...

Seems like you could do something like this though:

$ git config --global alias.d '!sh -c "git diff $1^ $1" -'
$ git d 348c104

Martin



More information about the Juju-dev mailing list