On Thu, 10 Jan 2008, Gregory Jefferis wrote:If you work together with other people on other platforms, then CRLF is a major pain in the *ss. So you have various options: - only develop on unix-like platforms: lines end with LF, and nobody has any problems regardless of autocrlf behaviour. Might as well consider everything binary. - only develop on windows, using only one set of basic tools: lines normally end with CRLF, and nobody cares. Migth as well consider everything binary. - Mixed windows/unix platfoms, but the Windows people are constrained to use only tools that write text-files with LF. Might we well consider everything binary. Quite frankly, Johannes seems to argue that this is a viable alternative, but I seriously doubt that is really true. Yes, there are lots of Windows tools (pretty much all of them by now, I suspect) that *understand* LF-only line endings, but it's also undoubtedly the case that if you allow windows developers to use their normal tools, a number of them *will* write files with CRLF. - Mixed windows usage - either with other UNIX users, or even just *within* a windows environment if *some* of the tools are basically UNIX ports (ie MinGW or Cygwin without text-mounts) In this case, some tools will write files with CRLF, and others will write them with LF. Again, usually all tools can *read* either form, but the writing is mixed and depends on the tool (so if you work in a group where different people use different editors, you will literally switch back-and-forth between LF and CRLF, sometimes mixing the two in the same file!). This one - at the very least - basically requires "autocrlf=input". Anything else is just madness, because otherwise you'll get files that get partly or entirely rewritten in the object database just due to line ending changes. So in *most* of the situations, you probably don't need to worry about autocrlf. But the thing is, I'm almost 100% convinced that the moment you have even *one* windows developer, and any UNIX experience at all (whether due to people actually working on unix, or just using unixy tools under Windows), you will end up in that final case that really does want autocrlf. Linus - 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
| Sean | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation,pathname matching |
| Herbert Xu | Re: 2.6.23-rc4-mm1 |
| Miklos Szeredi | Re: [BUG] long freezes on thinkpad t60 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Matthieu Moy | Re: [RFC] Convert builin-mailinfo.c to use The Better String Library. |
| Guido Ostkamp | [PATCH] Fix Solaris Workshop Compiler issues |
| Shawn Pearce | Re: [RFC] Submodules in GIT |
| Imran M Yousuf | Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Marco Peereboom | Re: Real men don't attack straw men |
| patrick keshishian | SMTP flood + spamdb |
| Andrés Delfino | Re: bcw(4) is gone |
| Tilman Schmidt | Re: 2.6.25-rc8: FTP transfer errors |
| Denys Fedoryshchenko | SFQ depth limit |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
| high memory | 16 hours ago | Linux kernel |
| semaphore access speed | 19 hours ago | Applications and Utilities |
| the kernel how to power off the machine | 20 hours ago | Linux kernel |
| Easter Eggs in windows XP | 23 hours ago | Windows |
| Shared swap partition | 1 day ago | Linux general |
| Root password | 1 day ago | Linux general |
| Where/when DNOTIFY is used? | 1 day ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 1 day ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 1 day ago | Linux kernel |
| USB Driver -- Interrupt Polling -- A Little Help Please | 1 day ago | Linux general |
