Documentation
¶
Overview ¶
Package branchname sanitizes, validates, and generates Git branch names.
Index ¶
Constants ¶
View Source
const ( // MaxByteLength is the maximum length for a branch name. // Git refs have a max length of 256 bytes, minus 22 for "refs/stackit/metadata/" MaxByteLength = 234 )
Variables ¶
This section is empty.
Functions ¶
func FromMessage ¶
FromMessage generates a branch name from a commit message subject.
Types ¶
type InvalidError ¶
InvalidError reports why a branch name is invalid.
func (*InvalidError) Error ¶
func (e *InvalidError) Error() string
Click to show internal directories.
Click to hide internal directories.