On Jan 11, 2008, at 6:25 PM, Linus Torvalds wrote:Ah sorry, I misunderstood you in [1]. I thought your last point "Mixed Windows usage" meant what I have in mind: A user working in a mixed Windows/Unix environment who creates a file using Windows tools and commits it in the Unix environment. In this case the CRLF file will be transferred from Windows to Unix without git being involved. The right thing for git on Unix is to remove CRLF during a commit but still write only LF during check out. So autocrlf=input is the right choice. [1] http://article.gmane.org/gmane.comp.version-control.git/70082 It happens that people working in a mixed environment do such things. They just copy files from Windows to Unix and commit there. Not very often, but it happens. So it would be nice if git would handle this situation and it actually can by setting autocrlf=input. My point is that perfect support for mixed environments requires that git removes CRLF from any input on any platform. However, git should behave differently during checkout. In this case the native line ending should be written (LF on Unix, CRLF on Windows). The difference happens during check out; commit should be handled identically. 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
| Mike Travis | [RFC 00/15] x86_64: Optimize percpu accesses |
| Nick Piggin | Re: [PATCH 0 of 4] Generic AIO by scheduling stacks |
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Linus Torvalds | Re: kernel.org mirroring (Re: [GIT PULL] MMC update) |
| Nguyen Thai Ngoc Duy | Re: VCS comparison table |
| Leon Dippenaar | New tcp stack attack |
| Richard Stallman | Real men don't attack straw men |
| Kevin Neff | Patching a SSH 'Weakness' |
| Chris | sudo & wheel group |
| David Miller | [GIT]: Networking |
| Wang Chen | [PATCH 2/15] netdevice 82596: Convert directly reference of netdev->priv to net... |
| Valentine Barshak | [PATCH] USB: net: Fix asix read transfer buffer allocations. |
| Natalie Protasevich | [BUG] New Kernel Bugs |
