all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* git, magit: nth diff before
@ 2015-03-17 11:08 Andreas Röhler
  2015-03-17 11:27 ` Tassilo Horn
  2015-03-17 11:37 ` Yuri Khan
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Röhler @ 2015-03-17 11:08 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org List

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?

Thanks,

Andreas



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git, magit: nth diff before
  2015-03-17 11:08 git, magit: nth diff before Andreas Röhler
@ 2015-03-17 11:27 ` Tassilo Horn
  2015-03-17 11:37 ` Yuri Khan
  1 sibling, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2015-03-17 11:27 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: help-gnu-emacs@gnu.org List

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git, magit: nth diff before
  2015-03-17 11:08 git, magit: nth diff before Andreas Röhler
  2015-03-17 11:27 ` Tassilo Horn
@ 2015-03-17 11:37 ` Yuri Khan
  2015-03-17 11:56   ` Andreas Röhler
  1 sibling, 1 reply; 4+ messages in thread
From: Yuri Khan @ 2015-03-17 11:37 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: help-gnu-emacs@gnu.org List

On Tue, Mar 17, 2015 at 5:08 PM, Andreas Röhler
<andreas.roehler@easy-emacs.de> wrote:

> 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?

M-x magit-show-commit RET HEAD~8 RET if you really insist on a
command-line-like interface.

But you may also like to invoke M-x magit-log, move point to the line
describing the commit you want, and press RET.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git, magit: nth diff before
  2015-03-17 11:37 ` Yuri Khan
@ 2015-03-17 11:56   ` Andreas Röhler
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Röhler @ 2015-03-17 11:56 UTC (permalink / raw)
  To: Yuri Khan; +Cc: help-gnu-emacs@gnu.org List, Tassilo Horn

On 17.03.2015 12:37, Yuri Khan wrote:
> On Tue, Mar 17, 2015 at 5:08 PM, Andreas Röhler
> <andreas.roehler@easy-emacs.de> wrote:
>
>> 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?
>
> M-x magit-show-commit RET HEAD~8 RET if you really insist on a
> command-line-like interface.
>
> But you may also like to invoke M-x magit-log, move point to the line
> describing the commit you want, and press RET.
>

Thanks all!

Andreas



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-17 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17 11:08 git, magit: nth diff before Andreas Röhler
2015-03-17 11:27 ` Tassilo Horn
2015-03-17 11:37 ` Yuri Khan
2015-03-17 11:56   ` Andreas Röhler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.