delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/24/20:50:32

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:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
q=dns; s=default; b=htwfU0GAFYjrFn49Lgy66F6QlgxBDNHkTnJi4QkJmSl
N/DecDnNLX0akf8k4LHPcggBSTmjab0dpBi27PL3MnwGtzba6eS6+Hj2P+gHJWTa
OmifMxHYVzAOh8mE50eTCFB1vGPEZ0JsKHD7cR413gw1OIeswBQaSFktpnCgJb14
=
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:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
s=default; bh=G5XdzoVfDe7dXvgG4U5JB19rPAU=; b=f+p5OLp6QjaRd863+
z/EGamHateEUcZyo59/o2DR4rteClDMibALr558KsNnnW5FrMqjV9R2LCy8zkmcD
wJK/dyX/GUt+nTSolD7EtN7oSmF7HyZUS4xArR1GUONj+Cyn2d3ks4oSFljnz3nK
SHM2d8me5U5aND3ypHIASwdU1U=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <1427244613.3752.4.camel@cygwin.com>
Subject: Re: Cygwin Git thinks files are changed when they aren't
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Date: Tue, 24 Mar 2015 19:50:13 -0500
In-Reply-To: <5511CAD2.2020003@oliveyou.net>
References: <5511CAD2 DOT 2020003 AT oliveyou DOT net>
Mime-Version: 1.0
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019