Documentation
¶
Index ¶
Constants ¶
View Source
const (
InitialCommitHash = "(initial)"
)
Variables ¶
View Source
var ( ErrDoesNotExist = errors.New("path does not exist") ErrNotDirectory = errors.New("not a directory") ErrNotRepository = errors.New("not a git repository") ErrDotGitOpen = errors.New("attempt to open .git/ as a repository") ErrRepositoryHasNoCommits = errors.New("repository has no commits") )
Functions ¶
This section is empty.
Types ¶
type ConflictPathStatus ¶
type DiffNumStat ¶
type DiffNumStat struct {
Paths []PathDiffNumStat
}
type MovedPathStatus ¶
type ParseError ¶
type ParseError struct {
Errs []error
}
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type PathDiffNumStat ¶
type RegularPathStatus ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (Repo) BranchShowCurrent ¶
func (Repo) DiffNumStatHead ¶
func (r Repo) DiffNumStatHead(ctx context.Context) (DiffNumStat, error)
type TokenParseError ¶
func (TokenParseError) Error ¶
func (e TokenParseError) Error() string
type UnknownRunError ¶
func NewUnknownRunErr ¶
func NewUnknownRunErr(res exec.Result, err error) *UnknownRunError
func (*UnknownRunError) Error ¶
func (e *UnknownRunError) Error() string
type UntrackedPathStatus ¶
type UntrackedPathStatus struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.