[ANN] draft of pre_commit hook to check that committed files does not contains CRLF line-endings

Alexander Belchenko bialix at ukr.net
Fri Mar 7 17:08:00 GMT 2008


Recently there was request for such hook. I'm also needed it for my new
co-worker who switch between Windows and Linux very often and tends
to commit files with wrong EOL. So here is the result of my attempt.
Consider it alpha, any feedback is welcome!

http://bazaar.launchpad.net/~bialix/+junk/checkeol

To enable check EOL you need to get copy of my plugin first and then
create file .checkeol in the root of your tree with the set of file
patterns that should be checked before commit succeeded. Format
of .checkeol is the same as for .bzrignore file.

Enjoy and say me what you think.




More information about the bazaar mailing list