From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: git question Date: Wed, 27 Jun 2018 17:02:23 +0200 Message-ID: References: <25CA8208-3609-421D-867F-6F69B706B27B@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530111701 1589 195.159.176.226 (27 Jun 2018 15:01:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2018 15:01:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: brandelune@gmail.com, Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 27 17:01:37 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYBwu-0000KC-P7 for ged-emacs-devel@m.gmane.org; Wed, 27 Jun 2018 17:01:36 +0200 Original-Received: from localhost ([::1]:59859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBz2-0005JO-57 for ged-emacs-devel@m.gmane.org; Wed, 27 Jun 2018 11:03:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYBxl-0005FE-VI for emacs-devel@gnu.org; Wed, 27 Jun 2018 11:02:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYBxi-0002ZT-1L for emacs-devel@gnu.org; Wed, 27 Jun 2018 11:02:29 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:53532) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fYBxh-0002Yb-QW for emacs-devel@gnu.org; Wed, 27 Jun 2018 11:02:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 16FD3ADF4; Wed, 27 Jun 2018 15:02:24 +0000 (UTC) X-Yow: I am having FUN... I wonder if it's NET FUN or GROSS FUN? In-Reply-To: (Yuri Khan's message of "Wed, 27 Jun 2018 21:49:23 +0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226779 Archived-At: On Jun 27 2018, Yuri Khan wrote: > On Wed, Jun 27, 2018 at 9:29 PM Jean-Christophe Helary > wrote: > >> $ git diff HEAD@{1}.. >> >> Thank you, and thank you Andreas for the same reply. > > Note the subtle difference: =E2=80=9Cgit diff HEAD@{1}..=E2=80=9D will = give the diff > between previous and current states, while =E2=80=9Cgit diff HEAD@{1}=E2= =80=9D will > give the same diff but in reverse. No, they are both the same (unless your working tree is in modified state). Andreas. --=20 Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D= 7 "And now for something completely different."