[ANN] draft of pre_commit hook to check that committed files does not contains CRLF line-endings
jelmer at samba.org
Fri Mar 7 21:47:31 GMT 2008
Am Samstag, den 08.03.2008, 05:20 +0800 schrieb Eugene Wee:
> 2. Along more radical lines, could this plugin (or another written along
> the same lines) not only check, but also convert line endings if so
> configured? This would still not necessarily be a complete solution, but
> it might be the next step towards one, and perhaps it would be a stop
> gap solution for some teams.
That would require some changes to bzrlib: a new commit-related hook,
probably the same as required for things like etckeeper.
> Alexander Belchenko 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!
> > 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.
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
Jabber: jelmer at jabber.fsfe.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 307 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080307/e8c24dc2/attachment.pgp
More information about the bazaar