Skip to content

Commit

Permalink
Added a short style guide, and Emacs settings.
Browse files Browse the repository at this point in the history
Signed-off-by: Per Cederqvist <[email protected]>
Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
  • Loading branch information
Per Cederqvist committed Jan 22, 2015
1 parent e81f219 commit 9697167
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
((nil . ((indent-tabs-mode . t)
(tab-width . 8)))
(sh-mode . ((sh-basic-offset . 8))))
15 changes: 15 additions & 0 deletions Documentation/Contributing
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ Documentation/SubmittingPatches file. :)

1) Hack on the code a bit

Please follow this style guide:

- Use tabs for indentation.

- Put "then" on the same line as "if".

- Follow the style of the existing code, except if it breaks the
above guidlines.

- If you change the code to conform to the style guide, please do so
in a separate commit that does not change anything else.

Please check that you change does not break "make test". Please add
new testcases for any new functionality, and if you fix a bug.

2) Make a patch:

Use "diff -up" or "diff -uprN" to create patches. Or simply use git to
Expand Down

0 comments on commit 9697167

Please sign in to comment.