From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: git, magit: nth diff before Date: Tue, 17 Mar 2015 12:27:43 +0100 Message-ID: <87fv936ez4.fsf@gnu.org> References: <55080B4A.5020309@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426591702 30467 80.91.229.3 (17 Mar 2015 11:28:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2015 11:28:22 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org List" To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 12:28:07 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YXpfK-0002rR-IZ for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2015 12:28:06 +0100 Original-Received: from localhost ([::1]:53927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXpfE-0002Sr-Rg for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2015 07:28:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXpf3-0002Sl-AY for help-gnu-emacs@gnu.org; Tue, 17 Mar 2015 07:27:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXpez-0001r4-Ac for help-gnu-emacs@gnu.org; Tue, 17 Mar 2015 07:27:49 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:33295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXpez-0001qO-5e for help-gnu-emacs@gnu.org; Tue, 17 Mar 2015 07:27:45 -0400 Original-Received: from thinkpad-t440p (unknown [141.26.89.197]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 7CC7C1A852D; Tue, 17 Mar 2015 12:27:43 +0100 (CET) Mail-Followup-To: Andreas =?utf-8?Q?R=C3=B6hler?= , "help-gnu-emacs\@gnu.org List" 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") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103192 Archived-At: Andreas R=C3=B6hler 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