Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoGit = errors.New("bumpversion: git not found")
ErrNoGit is returned when git is not in PATH.
View Source
var ErrTagsDiffer = errors.New("bumpversion: tags differ on remote")
ErrTagsDiffer is returned when remote tags differ from local ones.
View Source
var VersionRegexpRaw = `v?[0-9]+\.[0-9]+\.[0-9]+`
VersionRegexpRaw is a very simple version regexp pattern.
Functions ¶
func FormatSegments ¶
FormatSegments formats a version from segments.
Types ¶
type GitConfig ¶
type GitConfig struct { // C overrides a path to start git in. // It works like `-C` parameter (see `git help git`). // If empty, current working directory is used. C string // contains filtered or unexported fields }
GitConfig configures git.
type VCS ¶
type VCS interface { // Tags returns a list of consistent tags. It may return ErrTagsDiffer. Tags() ([]*version.Version, error) // Tags add a tag reference to a current commit. Tag(*version.Version) error // Push pushes tags to remote. Push() error }
VCS defines an interface for a minimal VCS.
Click to show internal directories.
Click to hide internal directories.