Skip to content

Commit

Permalink
Added coding/commiting convention files to doc/procedures/
Browse files Browse the repository at this point in the history
  • Loading branch information
awdavies committed Sep 24, 2014
1 parent 7f0a45f commit db5d0de
Show file tree
Hide file tree
Showing 2 changed files with 910 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/procedures/commit_coding.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
TITLE: Commit message conventions

The format of commit message should be a short description of what you did.
After the description, the bug ID, review ID or anything else.

The commit log should not contain the obvious. If you change file Foo.cpp:

BAD:
"Fix bug in Foo.cpp"
BAD:
"Fix #45"
BAD:
"Commit Foo.cpp"
GOOD:
"Fix buffer overflow (close #45)."

The above does not mean that when you do a complex change do not write a
description of what you did, on the contrary. When a long description is
needed do add as much as needed to explain the change, just do not add
meaningless information (committing Foo.cpp etc.)

It is advisable to split complex commits to several smaller commits if
possible. If you see that your commit massage contain more then one topic, you
probably can and should split the commit into a few unrelated commits.
Loading

0 comments on commit db5d0de

Please sign in to comment.