icecream
icecream

Reputation: 31

Git diff showing unchanged files

A repository I've been working and committing/pushing with for a while is showing unchanged files have been changed.

After adding/committing these files I can generate a patch which shows they have not been changed. Why does git think these are changed?

 .../bar/index.js     |   0
 .../foo.txt          |   0

Upvotes: 2

Views: 263

Answers (1)

icecream
icecream

Reputation: 31

The difference in the file permissions. I found the difference by looking through git diff and seeing this.

old mode 100755  
new mode 100644  

Upvotes: 1

Related Questions