Documentation
¶
Index ¶
- Constants
- Variables
- type ConflictPathStatus
- type DiffNumStat
- type MovedPathStatus
- type ParseError
- type PathDiffNumStat
- type PathState
- type RegularPathStatus
- type Repo
- func (r Repo) BranchShowCurrent(ctx context.Context) (string, error)
- func (r Repo) DiffNumStatHead(ctx context.Context) (DiffNumStat, error)
- func (r Repo) Path() string
- func (r Repo) Pull(ctx context.Context) error
- func (r Repo) RevParseHead(ctx context.Context) (string, error)
- func (r Repo) Status(ctx context.Context) (Status, error)
- func (r Repo) Switch(ctx context.Context, branch string) error
- type Status
- type TokenParseError
- type UnknownRunError
- type UntrackedPathStatus
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.