Merge branch 'js/commit-gpgsign' of ../git-gui into js/git-gui-commit-gpgsign
[gitweb.git] / Documentation / SubmittingPatches
index e8ad978824ce88aa8c7b1b0f7cde64c1977b8682..08352deaae4763791b70bd172682c1fe5380f7b4 100644 (file)
@@ -121,6 +121,16 @@ its behaviour.  Try to make sure your explanation can be understood
 without external resources. Instead of giving a URL to a mailing list
 archive, summarize the relevant points of the discussion.
 
+If you want to reference a previous commit in the history of a stable
+branch, use the format "abbreviated sha1 (subject, date)",
+with the subject enclosed in a pair of double-quotes, like this:
+
+    Commit f86a374 ("pack-bitmap.c: fix a memleak", 2015-03-30)
+    noticed that ...
+
+The "Copy commit summary" command of gitk can be used to obtain this
+format.
+
 
 (3) Generate your patch using Git tools out of your commits.