You should be able to do:
git update-index --chmod=(+|-)x <file>
to adjust the executable bit stored in the index.
You can then commit this separately from any changes to the files content.
You should be able to do:
git update-index --chmod=(+|-)x <file>
to adjust the executable bit stored in the index.
You can then commit this separately from any changes to the files content.