unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: "help-gnu-emacs@gnu.org List" <help-gnu-emacs@gnu.org>
Subject: Re: git, magit: nth diff before
Date: Tue, 17 Mar 2015 12:27:43 +0100	[thread overview]
Message-ID: <87fv936ez4.fsf@gnu.org> (raw)
In-Reply-To: <55080B4A.5020309@easy-emacs.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Tue, 17 Mar 2015 12:08:58 +0100")

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



  reply	other threads:[~2015-03-17 11:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-17 11:08 git, magit: nth diff before Andreas Röhler
2015-03-17 11:27 ` Tassilo Horn [this message]
2015-03-17 11:37 ` Yuri Khan
2015-03-17 11:56   ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fv936ez4.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).