X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=R11deOEOc/7dhzo9 ROjUlQG9yvOkayPTHPsH466FR4uorCN1VUrp+mW2z7xQdZn1rZ5qrwv6FZ0i1Fq3 3kQzPd8AULHL7fCGycXB51jEhPUl37OsCamHdZudxml9+orC//i/UzBkV5N96Ywq QWJkU72+hsOUP8lRLikpRrkELhc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=wu7DEn+sQhyP2TP9D83/I7 xleEk=; b=D8zI//IVCqdwJClKmA+stcC1U7MJ9f6f3qkO/RANYE1YI4lYC2UF29 xrV6FZtY8UI6bZ/pFWZ1SgP5MLUQuCyGIM3Bw7MeLsIA3quoFPVfZjNK8isv9JQy xa7qaZ1+VJ1GH7xOU5ieVVoU3sedHaQDGDXJhhtAVFEJMrBlBNC5k= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Message-ID: <55125353.7030003@jhmg.net> Date: Tue, 24 Mar 2015 23:18:59 -0700 From: Jim Garrison Reply-To: jhg AT acm DOT 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 AT cygwin DOT com Subject: Re: Cygwin Git thinks files are changed when they aren't References: <5511CAD2 DOT 2020003 AT oliveyou DOT net> <1427244613 DOT 3752 DOT 4 DOT camel AT cygwin DOT com> In-Reply-To: <1427244613.3752.4.camel@cygwin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 AT acm DOT 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