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

Re: Ignore / override svn:eol-style=native while checkout / update

From: David Weintraub <qazwart_at_gmail.com>
Date: Mon, 6 Jul 2009 14:48:52 -0400

On Mon, Jul 6, 2009 at 2:05 PM, Andrey Repin<anrdaemon_at_freemail.ru> wrote:
> MAC is considered a *nix environment, but it uses CR instead of LF due to
> historical reasons.
> "Don't use" is not very helpful suggestion, unfortunately :(

Just to clarify:

Mac OS X uses "LF" as the EOL character on text based files. This is
especially true when you're in the terminal command line environment.
Older pre-OS X programs will use "CR". If you use shell scripts on the
Mac, or use VIM, you are using "LF" as the EOL character.

Cygwin can be set to use either "CRLF" or "LF". However, when you
setup Cygwin, you are highly recommended to use "LF" as in "I highly
recommend you not pass that police car at 90 MPH on the highway". I
know people who setup Cygwin to use CRLF because they think it
improves interoperability, and then are very sorry afterwords.

Use LF on all Unix type files that require LF (like shell scripts, and
Makefiles), use CR on all Windows files that require CR (like
VisualStudio configuration files), and "native" on all the other types
of text files.

You can use a pre-commit hook to help you make sure that svn:eol-style
is set, and is set correctly.

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2368485
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-06 20:49:47 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.