Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrStageNotEmpty is returned by Reset() when it was called without force. // and there are still changes in the staging area. ErrStageNotEmpty = errors.New("there are changes in the staging area; use the --force") // ErrNoChange is returned when trying to commit, but there is no change. ErrNoChange = errors.New("nothing changed between the given versions") // ErrAmbigiousRev is returned when a ref string could mean several commits. ErrAmbigiousRev = errors.New("there is more than one rev with this prefix") // ErrExists is returned if a node already exists at a path, but should not. ErrExists = errors.New("File exists") // ErrBadNode is returned when a wrong node type was passed to a method. ErrBadNode = errors.New("Cannot convert to concrete type. Broken input data?") )
Functions ¶
func IsErrNoSuchRef ¶
IsErrNoSuchRef checks if `err` is a no such ref error.
func IsNoSuchFileError ¶
IsNoSuchFileError asserts that `err` means that the file could not be found
func NoSuchFile ¶
NoSuchFile creates a new error that reports `path` as missing
Types ¶
type ErrNoSuchRef ¶
type ErrNoSuchRef string
ErrNoSuchRef is returned when a bad ref was used
func (ErrNoSuchRef) Error ¶
func (e ErrNoSuchRef) Error() string
Click to show internal directories.
Click to hide internal directories.