From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu Moy Subject: Re: [Request] Git reset should be able to ignore file permissions Date: Wed, 19 Jun 2013 07:40:45 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Cc: git To: Alexander Nestorov X-From: git-owner@vger.kernel.org Wed Jun 19 07:40:53 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UpB8W-0004bN-Hw for gcvg-git-2@plane.gmane.org; Wed, 19 Jun 2013 07:40:52 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752227Ab3FSFkt (ORCPT ); Wed, 19 Jun 2013 01:40:49 -0400 Received: from mx1.imag.fr ([129.88.30.5]:58415 "EHLO shiva.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325Ab3FSFks (ORCPT ); Wed, 19 Jun 2013 01:40:48 -0400 Received: from mail-veri.imag.fr (mail-veri.imag.fr [129.88.43.52]) by shiva.imag.fr (8.13.8/8.13.8) with ESMTP id r5J5ejOB004978 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Wed, 19 Jun 2013 07:40:45 +0200 Received: from anie.imag.fr ([129.88.7.32]) by mail-veri.imag.fr with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UpB8P-0001R0-Oj; Wed, 19 Jun 2013 07:40:45 +0200 In-Reply-To: (Alexander Nestorov's message of "Tue, 18 Jun 2013 19:03:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (shiva.imag.fr [129.88.30.5]); Wed, 19 Jun 2013 07:40:45 +0200 (CEST) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Alexander Nestorov writes: > How about that: > > +Reset only files who's content changed (instead of mtime modification):: Much better, yes. I'd say "stat information" instead of mtime (that's what used in the description of update-index --refresh, and is a bit more accurate since Git also checks the inode number IIRC). > +------------ > +$ git update-index --refresh <1> > +$ git reset --hard <2> > +------------ > ++ > +<1> Make git realize which files actually changed instead of s/git/Git/ when talking about "The Git system" (as opposed to "The git command"). git-gui or other Git clients would also see the index change. -- Matthieu Moy http://www-verimag.imag.fr/~moy/