Problem: apparently the scripts in the .git/hooks directory depend on the filename matching one of:
post-commit
pre-commit
pre-rebase
etc …
No concept of “file extension” is required because the “shebang line” indicates how the file should run, as long as it is executable and running on your Linux box.
The problem is when you have some scripts that you want to run on a Windows box.
Question: Is there a way to execute the hook scripts that can be understood on a Windows machine?
I don’t think Windows has the concept of executing extension-less files. Workarounds would be to 1) use Cygwin git under bash, where the whole shebang business works or 2) a hack in the Windows git version that actually parses the shebang lines itself and loads the appropriate interpreter. I can see all sorts of philosophical objections to the latter, so I would guess that’s not going to happen…