Formatting scripts in CTDB source code (was Re: [PATCHES] Various CTDB bug fixes and improvements)

Martin Schwenke martin at meltin.net
Wed Jan 13 22:35:05 UTC 2016


On Wed, 13 Jan 2016 11:03:44 +0100, Michael Adam <obnox at samba.org>
wrote:

> I don't know. The standard 4 space also looks ok to me.
> But if we go with 8 char tabs, I agree that the above
> approach looks better.

Emacs' default indentation for C files is also based on an unusual
number of spaces, but we don't use it.  ;-)

I think that if we use tabs for C code then we might as well be
consistent and use the same for shell scripts, given that there's no
competing convention.  If "tabs with left-aligned case labels" is
already what VIM does then we might as well do that.  No use making
everyone tweak editor settings just for the sake of it...

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 173 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160114/43077500/attachment.sig>


More information about the samba-technical mailing list