That works. Thanks.
I notice that if I put "notepad %1" in the pre-commit.bat file, when I commit a file it opens notepad with the filename as text in notepad. I was expecting it to open the file that I was committing. Is there any way to do this?
I want to run Astyle on the files I'm committing to clean up the formatting before they go into the repository.
And yet one more question: Is it possible for the pre-commit.bat script to know which working directory the commit is happening in? Perhaps as an environment variable? I'd like to be able to do different actions in the pre-commit hook depending on which project I'm working on.