From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Don't complain about changed file when it hasn't changed Date: Mon, 29 Aug 2016 20:39:46 -0400 Message-ID: References: <83oa4bbq5b.fsf@gnu.org> <28f1147e-3aa7-b574-b420-ef18ebe699b5@lanl.gov> <83zinva1lt.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1472517429 7989 195.159.176.226 (30 Aug 2016 00:37:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2016 00:37:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 02:37:05 2016 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 1beX31-0001SS-Mf for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 02:37:04 +0200 Original-Received: from localhost ([::1]:46328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beX2z-0008TF-3G for ged-emacs-devel@m.gmane.org; Mon, 29 Aug 2016 20:37:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beX2k-0008T3-QO for emacs-devel@gnu.org; Mon, 29 Aug 2016 20:36:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beX2h-0004OB-JP for emacs-devel@gnu.org; Mon, 29 Aug 2016 20:36:46 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:60508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beX2h-0004O6-Ef; Mon, 29 Aug 2016 20:36:43 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u7U0bM1R016840; Mon, 29 Aug 2016 20:37:22 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 19F3366274; Mon, 29 Aug 2016 20:39:46 -0400 (EDT) In-Reply-To: <83zinva1lt.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 Aug 2016 21:09:34 +0300") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5781=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5781> : inlines <5153> : streams <1692179> : uri <2277663> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:206910 Archived-At: > I don't understand why Git touches files it doesn't need to change. > It can (and does, AFAIK) compute the checksum of a file to know > whether it changed. Usually it changes them then reverts them. E.g.: git stash git pull git stash pop all the files modified locally but not in the pulled change will have a new timestamp but the same old contents. Since these are separate Git invocations, I don't think it would be correct for Git to reset the timestamp to some earlier value. Stefan