Show the permission of a indexed file in git -


this related question asked storing non-bare repository in dropbox easy movement between computers, may helpful read question background.

the gist filemode keeps reporting diff number of files. can't find way reproduce consistently, happens frequently. i've noticed file, has 644 permissions on both machines reports diff 755 on 1 of machines. makes me think git believes executable bit set, can't figure out whether can see how git has bit set.

to see git thinks files in commits , index, use git ls-tree <tree> , git ls-files -s <path> respectively.

by way, seems git looks @ executable bit, , assumes 644 else. @ create_ce_mode in cache.h if want try debugging weird issue.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -