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: Don't complain about changed file when it hasn't changed Date: Tue, 30 Aug 2016 09:55:38 +0200 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 1472543764 1037 195.159.176.226 (30 Aug 2016 07:56:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2016 07:56:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 30 09:55:59 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 1bedtm-0008Aj-06 for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 09:55:58 +0200 Original-Received: from localhost ([::1]:47654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bedtj-0002lB-N1 for ged-emacs-devel@m.gmane.org; Tue, 30 Aug 2016 03:55:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bedtd-0002kr-L5 for emacs-devel@gnu.org; Tue, 30 Aug 2016 03:55:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bedtc-00089j-AS for emacs-devel@gnu.org; Tue, 30 Aug 2016 03:55:49 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:53541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bedtV-00086r-6M; Tue, 30 Aug 2016 03:55:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A385CAAC7; Tue, 30 Aug 2016 07:55:38 +0000 (UTC) X-Yow: Look into my eyes and try to forget that you have a Macy's charge card! In-Reply-To: (Stefan Monnier's message of "Mon, 29 Aug 2016 20:39:46 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] 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:206916 Archived-At: On Aug 30 2016, Stefan Monnier wrote: >> 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. It wouldn't be able to do that anyway, since there is no state recording the earlier values. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."