summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2010-08-25 23:29:17 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2010-08-25 23:29:17 +0200
commitf76ca38e95cee08ff80d3308ae4e08d0c4f4388f (patch)
treee48318b2e23652799b878d0aa3c246010d8a2f3d
parentf505624016013ed4a0e674de3f207b6cf82f7e37 (diff)
Document how to write good commit messages
Based on http://gist.github.com/539516.
-rw-r--r--HACKING39
1 files changed, 39 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index e1c5288..6df34c5 100644
--- a/HACKING
+++ b/HACKING
@@ -9,3 +9,42 @@ you to save this as part of custom-set-variables:
You can also tell Emacs to ignore file variables:
(setq enable-local-variables nil
enable-local-eval nil)
+
+
+Writing Commit Messages
+=======================
+
+ One line summary (< 50 characters)
+
+ Longer description (wrap at 72 characters)
+
+Summary
+-------
+
+* Less than 50 characters
+
+* What was changed
+
+* Imperative present tense (fix, add, change)
+
+ Fix bug 42
+ Add 'foobar' command
+ Change default timeout to 42
+
+* No period
+
+Description
+-----------
+
+* Wrap at 72 characters
+
+* Why, explain intention and implementation approach
+
+* Present tense
+
+Atomicity
+---------
+
+* Break up logical changes
+
+* Make whitespace changes separately