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: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 24 Mar 2015 19:50:13 -0500
- 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>
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