On Tue, 16 Oct 2007, Michael Witten wrote:Heh. I was sure we had a "CodingStyle", but it turns out that no, we don't, and yes, the 8-tab assumption is implicit in (a) the kernel rules (which git started out following for obvious reasons, and which *does* have documentation making this very explicit indeed) and (b) those few places where you can actually see it in the result. So maybe it should be made explicit. You can see the effect right now by doing git grep -1 ' ' *.c (again, that regex is a "tab+space", although it's not obvious) and then looking for places where we line up things in ways that simply wouldn't have worked if it wasn't a 8-wide tab, ie things like ... check_all_attr = xrealloc(check_all_attr, sizeof(*check_all_attr) * attr_nr); .. read_tree_recursive(args->tree, args->base, plen, 0, args->pathspec, write_zip_entry); .. where the arguments wouldn't line up for anything but 8-char-wide tabs. (But the code is certainly *readable* with other tab sizes, so it's not like this makes it impossible to work if somebody has a 4-space tab, it just means that such people can get odd effects - but they may not even realize that others see things line up!) 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
| David Miller | [GIT]: Networking |
| Larry Finger | Re: Regression in 2.6.27 caused by commit bfc0f59 |
| Arjan van de Ven | [patch] Add basic sanity checks to the syscall execution patch |
| jmerkey | [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released |
git: | |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Reece Dunn | git: cannot rename foo to Foo on a case-insensitive filesystem (e.g. on Windows) |
| Sean | Re: how to use git merge -s subtree? |
| Karl | Re: git-svn should default to --repack |
| carlopmart | About Xen: maybe a reiterative question but .. |
| Nick Guenther | Re: Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Jon Steel | New W83627HF Watchdog Driver |
| Alexey Kuznetsov | Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets |
| Indan Zupancic | Re: Realtek 8111C transmit timed out |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Matheos Worku | 2.6.24 BUG: soft lockup - CPU#X |
