aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/html
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-03-21 14:24:10 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-03-21 14:24:10 +0100
commita9007a8ccb8f779524027804cd6c991546e0ac57 (patch)
treea6ab3072a9068fc7fef03d0663e4c1cf75da1f54 /pkg/html
parente6d1a816d8ee66336ab745bd1e99c8d231bcf10c (diff)
pkg/html: add reference for 12-char hashes in tags
Diffstat (limited to 'pkg/html')
-rw-r--r--pkg/html/html.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/html/html.go b/pkg/html/html.go
index 1c48f6d51..c023437bb 100644
--- a/pkg/html/html.go
+++ b/pkg/html/html.go
@@ -144,7 +144,8 @@ func formatShortHash(v string) string {
}
func formatTagHash(v string) string {
- // Note: Fixes/References commit tags should include 12-char hash. Don't change this const.
+ // Note: Fixes/References commit tags should include 12-char hash
+ // (see Documentation/process/submitting-patches.rst). Don't change this const.
const hashLen = 12
if len(v) <= hashLen {
return v