Cygwin Git thinks files are changed when they aren't
Jim Garrison
jhg@jhmg.net
Wed Mar 25 06:32:00 GMT 2015
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
More information about the Cygwin
mailing list