gitref

package
v1.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL