]> git.proxmox.com Git - mirror_frr.git/commitdiff
HACKING: Use space char for indentation.
authorPaul Jakma <paul@opensourcerouting.org>
Mon, 27 Oct 2014 15:14:06 +0000 (15:14 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:30 +0000 (15:33 +0000)
* HACKING.tex: Whitespace/indent section is probably out of date. Rephrase.
  Remove the editor recommendations, as I don't know what would be correct.

Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
(cherry picked from commit 4da670b7a9aacf552aa11c4d4f6d994b312ada89)

HACKING.tex

index 57235b16029d7c9163ed9ee66241f3981dcbf085..be86ae18d2341a9c63ce9fdbfbf4f122a7f1f594 100644 (file)
@@ -21,23 +21,12 @@ are welcome.
 
 
 GNU coding standards apply.  Indentation follows the result of
-invoking GNU indent (as of 2.2.8a) with no arguments.  Note that this
-uses tabs instead of spaces where possible for leading whitespace, and
-assumes that tabs are every 8 columns.  Do not attempt to redefine the
-location of tab stops.  Note also that some indentation does not
-follow GNU style.  This is a historical accident, and we generally
-only clean up whitespace when code is unmaintainable due to whitespace
-issues, to minimise merging conflicts.
-
-For GNU emacs, use indentation style ``gnu''.
-
-For Vim, use the following lines (note that tabs are at 8, and that
-softtabstop sets the indentation level):
-
-set tabstop=8
-set softtabstop=2
-set shiftwidth=2
-set noexpandtab
+invoking GNU indent (as of 2.2.8a) with the --nut argument.
+
+Originally, tabs were used instead of spaces, with tabs are every 8 columns. 
+However, tab's interoperability issues mean space characters are now preferred for
+new changes. We generally only clean up whitespace when code is unmaintainable
+due to whitespace issues, to minimise merging conflicts.
 
 Be particularly careful not to break platforms/protocols that you
 cannot test.