git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: ignoring file modes completely

From
RKRafael Kitover <rkitover@io.com>
Date
Feb 6, 2011, 20:29 UTC
Message-ID
<4D4F04C4.6020401@io.com>
In-Reply-To
<AANLkTikCKZetZXRCZSLiM73engBcyxNfCtBN5yWdEgRs@mail.gmail.com>
On 2/6/2011 1:10 PM, Dmitry Potapov wrote:
Show 15 quoted lines
> On Sun, Feb 06, 2011 at 11:14:30AM -0500, Rafael Kitover wrote:
>> $ 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.

That was it! Thank you very much. I can now use msysGit and Cygwin git together, very cool.

Previous: Dmitry Potapov
Message 10 of 10 in “ignoring file modes completely”
  1. Rafael KitoverFeb 5, 2011
  2. Jared HanceFeb 5, 2011
  3. Rafael KitoverFeb 5, 2011
  4. Andreas EricssonFeb 5, 2011
  5. Rafael KitoverFeb 5, 2011
  6. Michael J GruberFeb 6, 2011
  7. Rafael KitoverFeb 6, 2011
  8. Rafael KitoverFeb 6, 2011
  9. Dmitry PotapovFeb 6, 2011
  10. Rafael KitoverFeb 6, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.