[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: git, magit: nth diff before
From: |
Tassilo Horn |
Subject: |
Re: git, magit: nth diff before |
Date: |
Tue, 17 Mar 2015 12:27:43 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
Hi!
> let's assume wont to see a git diff from 9th to 8th commit before
> head.
>
> Is there a convenient command using magic, i.e. giving arguments as
> numbers?
Since I usually don't know if I want to show the 9th or 8th commit
before HEAD, I do `l l` in the magit buffer to get the short log, and
then I move point on the commit I want to show and hit RET.
But you can also use `magit-show-commit', e.g.,
M-x magit-show-commit RET HEAD^^^^^^^^^ RET
or equivalently
M-x magit-show-commit RET HEAD~9 RET
from the magit buffer.
Bye,
Tassilo