Closed jleeothon closed 2 years ago
Run:
ln -s pre-commit.sh .git/hooks/pre-commit
Then modify some .c or .h file. Make some horrendous style mistake on purpose (e.g. two spaces instead of one around an infix operator).
Then run:
git commit -a -m "This is a test"
You should see that there are pending modifications on the file committed.
To try it out
Run:
Then modify some .c or .h file. Make some horrendous style mistake on purpose (e.g. two spaces instead of one around an infix operator).
Then run:
You should see that there are pending modifications on the file committed.