]> granicus.if.org Git - postgis/commitdiff
Small review pass for STYLE document
authorSandro Santilli <strk@kbt.io>
Wed, 28 Feb 2018 22:24:44 +0000 (22:24 +0000)
committerSandro Santilli <strk@kbt.io>
Wed, 28 Feb 2018 22:24:44 +0000 (22:24 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16439 b70326c6-7e19-0410-871a-916f4a2858ee

STYLE

diff --git a/STYLE b/STYLE
index 083ef822c610368d0e75e26fad9228ace46d5e15..b1a0fe092947aab8523289902630d2488b5dbaa8 100644 (file)
--- a/STYLE
+++ b/STYLE
@@ -15,21 +15,25 @@ from time to time, we will eventually get there.
 
 :Formatting:
 
-All C code should use an ANSI standard formatting with tabs for block
+Most C code should use an ANSI standard formatting with tabs for block
 indenting. When not block indenting, use spaces. To convert a file
 to the standard format use:
 
   astyle --style=ansi --indent=tab
 
+Some files use space indenting instead (check .editorconfig for info).
+For them, you can use:
+
+  astyle --style=ansi --indent=spaces=2
+
 Do not get too happy with this command. If you want to re-format a file you
 are working on:
 
  a) run astyle on it
  b) commit
  c) do your work
- d) commit
- e) if you are really finicky run astyle again
- f) commit
+ d) run astyle again
+ e) commit
 
 The idea is to avoid combining style-only commits and commits that change
 logic, so the logic commits are easier to read.