[darcs-users] Line endings

Miklos Vajna vmiklos at frugalware.org
Mon Jul 7 22:07:10 UTC 2008


On Tue, Jul 08, 2008 at 04:05:44AM +0900, "Stephen J. Turnbull" <stephen at xemacs.org> wrote:
> Levente Mészáros writes:
> 
>  > I know that there are pre-hooks and post-hooks, which can be used to
>  > translate line endings, so that the repository always contains '\n',
>  > while the working copy of windows users will have '\r\n'. The problem
>  > is that there is no standard way of doing this on windows.
> 
> Well, that's the problem.  *There is no standard way.*  The fact that
> this problem has existed since 1980 or so with no satisfactory
> solution suggests there is no good way, don't you think?  The best
> that can be done is a site-by-site policy. 

The problem is to decide what files should be converted and what ones
not. Binary files and scripts should not be converted.

Probably having a file like _darcs/prefs/boring to declare the file
patterns which should be converted on checkout/checkin would be a good
idea.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20080708/b0f5ea91/attachment.pgp 


More information about the darcs-users mailing list