Documentation ¶
Index ¶
- Variables
- type Branch
- type BranchOptions
- type Brancher
- type Commit
- type Configer
- type Description
- type Head
- type Header
- type Refs
- type Remoter
- type Repository
- func (r *Repository) Apply(c Commit) error
- func (r *Repository) Branch() (Branch, error)
- func (r *Repository) Describe() (Description, error)
- func (r *Repository) Head() (Head, error)
- func (r *Repository) IgnoreGlobalConfig()
- func (r *Repository) Open() error
- func (r *Repository) Remotes() ([]string, error)
- func (r *Repository) Users() ([]User, error)
- func (r *Repository) Worktree() (Worktree, error)
- type User
- type Worktree
- type Worktreer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLocalBranchNotFound = errors.New("local branch not found")
Functions ¶
This section is empty.
Types ¶
type BranchOptions ¶ added in v0.9.1
type BranchOptions struct {
// contains filtered or unexported fields
}
type Description ¶ added in v0.3.0
type Repository ¶
type Repository struct { Opener func(string, *git.PlainOpenOptions) (*git.Repository, error) Runner func(io.Writer, string, []string) error OpenFiler func(string, int, os.FileMode) (*os.File, error) GlobalConfig func(config.Scope) (*config.Config, error) Configer Configer Remoter Remoter Header Header Brancher Brancher Worktreer Worktreer }
func New ¶
func New() *Repository
func (*Repository) Apply ¶ added in v0.8.0
func (r *Repository) Apply(c Commit) error
func (*Repository) Branch ¶
func (r *Repository) Branch() (Branch, error)
func (*Repository) Describe ¶ added in v0.3.0
func (r *Repository) Describe() (Description, error)
func (*Repository) Head ¶ added in v0.3.0
func (r *Repository) Head() (Head, error)
func (*Repository) IgnoreGlobalConfig ¶ added in v0.9.1
func (r *Repository) IgnoreGlobalConfig()
func (*Repository) Open ¶ added in v0.5.0
func (r *Repository) Open() error
func (*Repository) Remotes ¶ added in v0.3.0
func (r *Repository) Remotes() ([]string, error)
func (*Repository) Users ¶
func (r *Repository) Users() ([]User, error)
func (*Repository) Worktree ¶ added in v0.7.0
func (r *Repository) Worktree() (Worktree, error)
Click to show internal directories.
Click to hide internal directories.