[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 19:44:27 GMT 2008
Ville M. Vainio пишет:
> On Fri, Mar 7, 2008 at 7:08 PM, Alexander Belchenko <bialix at ukr.net> wrote:
>
>> 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!
>
> Seems to work for me. Thanks!
>
> Now get it into the default distribution, and you can point it to
> people who complain about line endings. Then, it'll be trivial for
> projects that do not care about cross-platform functionality to *not*
> create the .checkeol file.
>
> For our project (IPython) where people develop on different platforms
> (and nobody has problems with strict guidelines on what you can check
> in), this is a very welcome addition.
>
> Problem solved. So much noise & such a simple solution.
Sorry about noise. Different people have different views of this problem.
It's actually intermediate solution, and I hope something will be done
in real line-endings support.
I'm happy user of IPython, so I'm glad if I help you.
More information about the bazaar
mailing list