Re: On Tabs and Spaces
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Oct 16, 2007, 23:05 UTC
- Message-ID
- <alpine.LFD.0.999.0710161559150.6887@woody.linux-foundation.org>
- In-Reply-To
- <1192565900.6430.16.camel@athena>
On Tue, 16 Oct 2007, Tom Tobin wrote:
> > But you then dismiss out of hand the option of using all spaces
I do indeed. I don't think it's sensible. And I did think I already answered that issue by talking about how most editors don't even support it or show the difference between tabs and spaces.
For example, the editor I use - microemacs - supports tabs just fine. It does auto-indentation etc. But it does it with hard-tabs by default, so now you have to have some editor-specific setup for that particular project if you ever want to do anything else.
And that's really what it boils down to. Everybody support 8-character hardtabs (and usually by default). They may support other things *too*, but any time you move away from that standard behaviour, you'll most likely find something that doesn't support the alternatives.
So yes, the answer really is: "git uses 8-character hard-tabs, live with it".
Linus