From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112126 invoked by alias); 25 Mar 2015 00:50:13 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 112112 invoked by uid 89); 25 Mar 2015 00:50:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 25 Mar 2015 00:50:12 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2P0oBjm019664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 24 Mar 2015 20:50:11 -0400 Received: from YAAKOV04.redhat.com ([10.10.116.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2P0o96k007663 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 24 Mar 2015 20:50:10 -0400 Message-ID: <1427244613.3752.4.camel@cygwin.com> Subject: Re: Cygwin Git thinks files are changed when they aren't From: Yaakov Selkowitz To: cygwin@cygwin.com Date: Wed, 25 Mar 2015 02:01:00 -0000 In-Reply-To: <5511CAD2.2020003@oliveyou.net> References: <5511CAD2.2020003@oliveyou.net> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00442.txt.bz2 On Tue, 2015-03-24 at 16:42 -0400, Chloe wrote: > Cygwin Git always thinks files are changed even when they aren't. After > a commit with a Windows Git, Cygwin Git shows files as modified. [snip] > $ git diff .project > diff --git a/.project b/.project > old mode 100644 > new mode 100755 This is your answer. On Windows, everything is executable, so changing a file with any native Windows program is bound to set the executable bit. A change in permissions is considered a modification in git, hence the message. To avoid this, you'll probably have to git clone with your Windows git to start with, as Cygwin programs won't change the permissions unless you tell them to. -- Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple