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

Re: Dealing with line endings

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 13 Jun 2015 10:50:36 +0200

On 13.06.2015 10:39, Lente wrote:
> Hello,
> As a web developer running Windows 7 I'm often working on projects
> written on a Mac computer. Trying to check these projects out `svn
> checkout http://core.svn.wordpress.org/trunk/ .` always leaves me
> with Windows (CRLF) line endings.
> Would it be possible to check these projects out without changing the
> line endings to Windows OS? Preferably globally. And similar to Git's
> `$ git config --global core.autocrlf input`.
> I've tried setting uncommenting `enable-auto-props = yes` and adding
> `*.php = svn:eol-style=LF`, but after a new checkout the file line
> endings are still converted to Windows (CRLF).

That will only apply to files you add to svn, not to those you've
already added.

You have to set the svn:eol-style property to all your files manually.

> Besides that I would like all files to be ignored, not just `php`
> files. (`*.* = svn:eol-style=LF` doesn't work either)

No, as mentioned above, this only applies to files you *add*, not
existing ones.

> Could someone perhaps assist me with this?

Select the files in explorer, right-click, select TortoiseSVN->Properties.
Click "New->EOL".
Then select what kind of EOL you want. Either "LF" or maybe just use
"native" - native means the EOL will be CRLF on Windows but LF on Linux.

And next time, please ask such questions on the users list - the dev
list is about the development of TSVN, not for user questions.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-06-13 10:50:42 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.