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

ignoring file modes completely

From
RKRafael Kitover <rkitover@io.com>
Date
Feb 5, 2011, 15:24 UTC
Message-ID
<4D4D6BC2.90101@io.com>
Hello,

I found the core.filemode option, which ignores executable bits, but I need an option to ignore all mode differences, and such an option does not seem to exist.

The reason for this is that I'm trying to use msysGit with Cygwin git, sometimes to work with an msysGit clone in cygwin or to work with a Cygwin git clone in msysGit. For example, I would like to use "git cpan-init" under Cygwin, then use msysGit to work with the repository, this is currently impossible.

Here is "git status" on a repo made with Cygwin git under msysGit:

$ git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: Makefile.PL # modified: t/02ads.t # modified: t/02cxn.t # modified: t/04os.t ... ...

Every file is modified because the modes do not match :(

Would it be possible to add some sort of option to ignore all file mode changes?

Next: Jared Hance
Message 1 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.