git svn - line endings in files which are checked out by svn and commited by git-svn -


the team using subversion version control system. love git. cloned git-svn.

autocrlf setting:

$ git config core.autocrlf true 

so files changed me have lf line ending.

when files checked out other members svn, have lf line-ending on windows.

setting autocrlf false can solve problem. tells git not change crlf lf.

can problem solved configuring subversion client?

both subversion , git have crlf conversion setting. can set anything, should set consistently. since in case want use non-standard tools on project, responsible make sure don't cause problems other team members. seems setting not enabled in subversion (it set property, recorded in repository there) turn core.autocrlf off now , convert files screwed format supposed in!

personally i'd never consider turning autocrlf on. in similar situation , experience there files must in specific format on systems, e.g. shell scripts (cygwin expects unix format) , msbuild projects (must windows format) , files may left in format, c++, java, python, perl , other sources. it's quite bit of trouble set crlf conversion need need tell exceptions , there absolutely nothing (provided don't try edit in plain notepad; other editors including notepad++, pspad, visual studio, vim etc. understand format)


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -