Show the permission of a indexed file in git
To see what git actually thinks about your files in commits and the index, use git ls-tree <tree>
and git ls-files -s <path>
respectively.
By the way, it seems that git only looks at the executable bit, and assumes 644
for everything else. Look at create_ce_mode in cache.h if you want to try debugging this weird issue.