[MERGE] Introduced .eoltype and non-(CR, CRLF, LF) check.

Alexander Belchenko bialix at ukr.net
Sat Mar 8 17:18:44 GMT 2008


Alexander Belchenko пишет:
> Eugene Wee пишет:
>> Hi Alexander,
>>
>> In my previous "feature request" email I suggested configuring 
>> checkeol to check for line endings other than a specified type. I 
>> decided to try and work a solution out myself.
>>
>> Basically, I introduced a .eoltype file that takes just one word: 
>> either CR, LF, or CRLF. If CR (or LF or CRLF) is the word, then files 
>> checked and found to have non-CR (or non-LF or non-CRLF) line endings 
>> will cause the commit to abort. The default is LF.
> 
> Thank you for your patch.
> But I actually prefer to not introduce new additional files in working 
> tree,
> but change format of .checkeol instead. For now I'm leaning towards 
> sections
> in this file and groups file masks together in sections. Something like 
> this:
> 
> --------------- .checkeol ----------------------
> [CRLF]
> *.txt
> 
> [LF]
> *.py
> ------------------------------------------------

New version with support of sections in .checkeol was pushed to Launchpad:

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



More information about the bazaar mailing list