cortoproject / corto

A hierarchical object store for connecting realtime machine data with web applications, historians & more
https://www.corto.io
MIT License
86 stars 14 forks source link

Added pre-commit.sh #653

Closed jleeothon closed 2 years ago

jleeothon commented 6 years ago

To try it out

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.