{"thread":{"id":"24219","subject":"git-svn and core.autocrlf on windows","startedAt":"2010-06-28T17:01:38Z","lastAt":"2010-06-29T08:32:48Z","messageCount":2,"participants":["MrUnleaded","Eyvind Bernhardsen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"144397","messageId":"AANLkTin2CIla9AOt8bRVbQPgyNKhvY6LauOVRc1LqGuQ@mail.gmail.com","threadId":"24219","inReplyTo":null,"subject":"git-svn and core.autocrlf on windows","fromName":"MrUnleaded","fromEmail":"mrunleaded@gmail.com","sentAt":"2010-06-28T17:01:38Z","receivedAt":"2010-06-28T17:01:38Z","isPatch":false,"sender":{"key":"mrunleaded@gmail.com","avatar":"https://gravatar.com/avatar/ee0905e0e94dc78e9549dc7dd0b233241bba0efa455e28a39b4819207d5778f1?d=mp&s=160"},"body":"Hello, I was wondering what the best or correct setting for\ncore.autocrlf would be when using git-svn to commit to a subversion\nrepository that is a windows project(ie CRLF line endings).\n\nThe documentation says that text documents are converted to LF line\nendings in the repo. If you commit to subversion will if convert that\ncommit to have the line endings you have on your system? Or will it\nuse LF line endings regardless?\n\nI would greatly appreciate if anyone could shed some light on this.\n\nThanks\n\n-- \nKevin\n"},{"id":"144448","messageId":"67C8E0A3-1A07-4F9E-965E-8E97C846D3D2@gmail.com","threadId":"24219","inReplyTo":"AANLkTin2CIla9AOt8bRVbQPgyNKhvY6LauOVRc1LqGuQ@mail.gmail.com","subject":"Re: git-svn and core.autocrlf on windows","fromName":"Eyvind Bernhardsen","fromEmail":"eyvind.bernhardsen@gmail.com","sentAt":"2010-06-29T08:32:48Z","receivedAt":"2010-06-29T08:32:48Z","isPatch":false,"sender":{"key":"eyvind.bernhardsen@gmail.com","avatar":"https://avatars.githubusercontent.com/u/106762?v=4"},"body":"On 28. juni 2010, at 19.01, MrUnleaded wrote:\n\n> Hello, I was wondering what the best or correct setting for\n> core.autocrlf would be when using git-svn to commit to a subversion\n> repository that is a windows project(ie CRLF line endings).\n> \n> The documentation says that text documents are converted to LF line\n> endings in the repo. If you commit to subversion will if convert that\n> commit to have the line endings you have on your system? Or will it\n> use LF line endings regardless?\n\n\"core.autocrlf=false\" is the safest setting, but according to this thread:\n\n\thttp://kerneltrap.com/mailarchive/git/2010/3/4/24918/thread\n\ngit-svn works with core.autocrlf now.  The fix was included in git 1.7.1.\n\nTo answer your question, you will end up with the correct line endings in your Subversion repository if the svn:eol-style property is set to \"native\" for all text files, regardless of how git is configured.  If the property is not set, you should turn off autocrlf.\n-- \nEyvind\n"}]}