Skip to content

Commit

Permalink
pkg/html: add reference for 12-char hashes in tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dvyukov committed Mar 21, 2019
1 parent e6d1a81 commit a9007a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/html/html.go
Expand Up @@ -144,7 +144,8 @@ func formatShortHash(v string) string {
} }


func formatTagHash(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 const hashLen = 12
if len(v) <= hashLen { if len(v) <= hashLen {
return v return v
Expand Down

0 comments on commit a9007a8

Please sign in to comment.