On 18/06/2014, John Meinel <j...@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

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to