heptagon/tools/git-hooks
Cédric Pasteur ab5de4e769 Compatibility with Mac OS X
Default wc command in Mac OS X does not have
a '-L' option
2010-07-16 14:35:33 +02:00
..
README Added git hooks for lexical syntax checking. 2010-06-26 16:34:02 +02:00
pre-commit Compatibility with Mac OS X 2010-07-16 14:35:33 +02:00
update Added git hooks for lexical syntax checking. 2010-06-26 16:34:02 +02:00

README

This directory holds two shell scripts that can be used in conjunction with git
to reject commits containing ill-formed .ml / .mli files. Are considered
ill-formed files that contain:

* Trailing whitespace.
* Lines spanning more than 80 columns.
* Tab characters.

The "pre-commit" and "update" scripts respectively handle local commits ("git
commit") and remote calls to "git push". To enable a script, just copy it to
$GIT_DIR/hooks/.

For more information, refer to the githooks manual page.

-- Adrien Guatto