[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: fixing files committed with wrong eol-style

From: Geoff Worboys <geoff_at_telesiscomputing.com.au>
Date: Tue, 13 Jul 2010 23:57:53 +1000

Les Mikesell wrote:
> There are workarounds but you can't just expect things to
> work in general and pretend it is normal. And some of
> those workarounds may involve silently changing to the
> preferred local line endings - and if anything but subversion
> itself does that it becomes a change in every line when
> committed, making diffs useless.

This may be true for some *nix systems/tools. But...

For most modern (Windows) development software it is not a
matter of "workarounds". They simply process the files and
accept whatever line endings they find. Good editors will
automatically switch between CRLF, LF and CR EOL modes
according to what they find. They don't change the file
(unless asked) they change their own mode operation.

If your developers all work with LF then there will be no
confusion and no need for workarounds. If anyone makes a
mistake and accidently commits a file with CRLF it is an
easy fix to resolve ... although most Windows software wont
care even if you don't bother to fix it.

-- 
Geoff Worboys
Telesis Computing
Received on 2010-07-13 15:58:57 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.