This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin Git thinks files are changed when they aren't
- From: Jim Garrison <jhg at jhmg dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 24 Mar 2015 23:18:59 -0700
- Subject: Re: Cygwin Git thinks files are changed when they aren't
- Authentication-results: sourceware.org; auth=none
- References: <5511CAD2 dot 2020003 at oliveyou dot net> <1427244613 dot 3752 dot 4 dot camel at cygwin dot com>
- Reply-to: jhg at acm dot org
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