I create a Linux Makefile solution with VisualGDB，and choose ‘copy source locally and upload’，when VisualGDB uploaded my souce code to Linux, all files were added execute permission，and git committed this modification which I don’t want to，is there a way to solve this？thanks！
We could also add support for preserving permissions, although in our experience not all tar versions support the advanced options (VisualGDB generates tar archives on-the-fly to upload large file sets), so this might cause more trouble than convenience.
This reply was modified 6 months ago by aronrubin.
Thanks for the suggestion. As this is a fairly low-impact issue, we don’t want to add another dependency to a 3rd-party library like libmagic, however you could work around it by running it on your side and generating a list of exceptions to include/exclude.
I fully understand on the third party dependency however I am not convinced extensions are sufficiently expressive. For example “README”, “mybinary”, “myscript”, and “license” all have no extension yet would likely have different permissions applied. As a simple compromise please consider reading the first 4 bytes of extensionless files for the sequences ELF (“\x7FELF”) and shell (“#!/”).
Thanks for your input. We have added it to the backlog and will try to address it in one of the next major releases, although as this is something very specific and low-impact, the relative priority of this feature is currently low.