On Jan 11, 2008, at 4:58 PM, Linus Torvalds wrote:You may later decide that you want to check out your project on Windows. In this case your repository should not contain CRLF. autocrlf=input ensures this. So given the current options, autocrlf=input is the only reasonable default on Unix if git wants to support cross-platform development as its default. autocrlf=input on Unix helps cross-platform development, too. autocrlf=input is true for the very same people that need autocrlf=true on Windows. Every developer who ever plans to check out his code on Windows and on Unix should have these default. I don't think the CRLF problem is a Windows vs. Unix discussion. In my view, the discussion is wether git will have real cross- platform support as its default or not. The current default is sane for native Unix or native Windows projects. For cross- platform projects the default needs to be changed in the way described above. Git needs to ensure that CRLF never enters the repository for text files. If you did not set autocrlf=true, copying source code from Windows to Unix would not be supported. But as you earlier mentioned, this seems to be a common operation and I am observing the same. So I recommend autocrlf=input on Unix if you plan to ever go cross-platform. Steffen - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Linus Torvalds | Re: [PATCH 00/23] per device dirty throttling -v8 |
| Andi Kleen | [PATCH x86] [0/16] Various i386/x86-64 changes |
| serge | Re: 2.6.25-rc5-mm1 |
| Kamalesh Babulal | [BUG] Linux 2.6.25-rc2 - Kernel Ooops while running dbench |
git: | |
| Francis Moreau | Track /etc directory using Git |
| Abdelrazak Younes | Git-windows and git-svn? |
| Johan Herland | Re: People unaware of the importance of "git gc"? |
| Scott Chacon | git-scm.com |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Richard Stallman | Real men don't attack straw men |
| Florin Andrei | firewall is very slow, something's wrong |
| qw er | OpenBSD sucks |
| David Miller | xfrm_state locking regression... |
| David Miller | [GIT]: Networking |
| Thomas Jarosch | Re: TCP connection stalls under 2.6.24.7 |
| Dave Jones | Re: odd RTL8139 quirk. |
