Re: ignoring file modes completely
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Feb 6, 2011, 18:10 UTC
- Message-ID
- <AANLkTikCKZetZXRCZSLiM73engBcyxNfCtBN5yWdEgRs@mail.gmail.com>
- In-Reply-To
- <4D4EC8E6.2090200@io.com>
On Sun, Feb 06, 2011 at 11:14:30AM -0500, Rafael Kitover wrote:
Show 6 quoted lines
> $ git diff HEAD > diff --git a/README b/README > old mode 100644 > new mode 100755 > $ git config --global core.filemode > false
This is because core.filemode is set in the local configuration: $ git config core.filemode true
Git automatically detects if chmod(2) is supported on the current file system and sets core.filemode to the corresponding value. Because cygwin emulates chmod(), git sets core.filemode to true.
Dmitry