Michael Soyka wrote:

> On 12/30/2015 12:35 PM, Ken Takata wrote:

[...]

> >> Git has a configuration option "core.autocrlf" that enables/disables
> >> linefeed-to-carriagereturnLinefeed and reverse conversions.
> >> If the client-side sets this to true, this conversion is done
> >> automatically by the client.  The server-side has no control over what
> >> the client does. The "ProGit" book discusses this chapter 8.1.
> > I don't think it works well. When I tried similar configuration on 
> > mercurial,
> > it didn't work because some of the test input files contains some control
> > codes including "\r". Some files were handled as binary files, and "\r" was
> > converted to "\r\n".
> > We also need to care about the mercurial mirror repository.
> I don't disagree with anything you've said.  It would seem to follow 
> that the test files themselves should not include such characters other 
> than as line terminators.

The test input files should be considered binary files, because they
contain what is typed.  Automatic CR-LF detection doesn't work for
binary files.

The new style test files use Vim script files, these should have fewer
problems.

Anyway, let's aim at keeping all the files in Unix format with LF and
make that work everywhere.


-- 
    With sufficient thrust, pigs fly just fine.
                   -- RFC 1925

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui