Skip to contentSkip to conversation

Getting rid of "mode change" on cygwin

DISCUSSION Maaartin 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Maaartin

author
#0 lore raw

I just switched from svn to git and in my first git commit all files get status modified with

mode change 100644 => 100755

I don't care about the file mode much, the 755 mode makes no sense but is probably some cygwin magic, as it may be hard to emulate the perms, so it simply considers all files as executables. I can't change the mode, since chmod a-x does nothing at all. Actually, I don't care about the perms at all, I'd be happy if git would show "no change" for unchanged files.

#1 lore raw
Quoted 10 lines · Maaartin

I just switched from svn to git and in my first git commit all files get status modified with

mode change 100644 => 100755

I don't care about the file mode much, the 755 mode makes no sense but is probably some cygwin magic, as it may be hard to emulate the perms, so it simply considers all files as executables. I can't change the mode, since chmod a-x does nothing at all. Actually, I don't care about the perms at all, I'd be happy if git would show "no change" for unchanged files.

$ git config core.filemode false

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."