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

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
Previous: Rafael KitoverNext: Rafael Kitover
Message 9 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.