From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106928 invoked by alias); 25 Mar 2015 06:19:04 -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 106916 invoked by uid 89); 25 Mar 2015 06:19:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp.jhmg.net Received: from smtp.jhmg.net (HELO smtp.jhmg.net) (207.198.124.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Mar 2015 06:19:02 +0000 Received: from [192.168.10.236] (c-50-137-136-169.hsd1.or.comcast.net [50.137.136.169]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by helios.jhmg.net (Postfix) with ESMTPSA id 2B70233853B for ; Wed, 25 Mar 2015 06:19:00 +0000 (UTC) Message-ID: <55125353.7030003@jhmg.net> Date: Wed, 25 Mar 2015 06:32:00 -0000 From: Jim Garrison Reply-To: jhg@acm.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Cygwin Git thinks files are changed when they aren't References: <5511CAD2.2020003@oliveyou.net> <1427244613.3752.4.camel@cygwin.com> In-Reply-To: <1427244613.3752.4.camel@cygwin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-03/txt/msg00444.txt.bz2 On 3/24/2015 5:50 PM, Yaakov Selkowitz wrote: > 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. See http://stackoverflow.com/questions/1580596 git config core.fileMode false -- Jim Garrison (jhg@acm.org) PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88 -- 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