Documentation ¶ Index ¶ Variables func Validate(name string) error Constants ¶ This section is empty. Variables ¶ View Source var ErrUnsafeRefName = errors.New("unsafe git ref name") ErrUnsafeRefName is the sentinel returned by Validate for unsafe ref names. Functions ¶ func Validate ¶ func Validate(name string) error Validate returns ErrUnsafeRefName (wrapped) if name is unsafe for use as a git branch name or source argument. An empty name is not validated here — callers that treat empty as "use default" should check before calling. Types ¶ This section is empty. Source Files ¶ View all Source files gitref.go Click to show internal directories. Click to hide internal directories.