Skip to content
Permalink
Browse files

pkg/html: add reference for 12-char hashes in tags

  • Loading branch information...
dvyukov committed Mar 21, 2019
1 parent e6d1a81 commit a9007a8ccb8f779524027804cd6c991546e0ac57
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit a9007a8

Please sign in to comment.
You can’t perform that action at this time.