(s string)
| 119 | } |
| 120 | |
| 121 | func trimRightSpace(s string) string { |
| 122 | return strings.TrimRightFunc(s, unicode.IsSpace) |
| 123 | } |
| 124 | |
| 125 | func cleanupMsg(dirtyMsg string) string { |
| 126 | // commit msg cleanup in git is configurable: https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---cleanupltmodegt |