Documentation
¶
Index ¶
- Variables
- func Apply(c Commit, opts ...func(c *Commit)) error
- func WithAmend(b bool) func(c *Commit)
- func WithDryRun(b bool) func(c *Commit)
- type Branch
- type Brancher
- type Commit
- type Configer
- type Description
- type Head
- type Header
- type RefsOptions
- type RefsResult
- type Remoter
- type Repository
- func (r *Repository) Branch() (Branch, error)
- func (r *Repository) Describe() (Description, error)
- func (r *Repository) Head() (Head, error)
- 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 ¶
func WithDryRun ¶ added in v0.3.0
Types ¶
type Description ¶ added in v0.3.0
type RefsOptions ¶ added in v0.3.0
type RefsOptions struct {
// contains filtered or unexported fields
}
type RefsResult ¶ added in v0.3.0
type RefsResult struct {
// contains filtered or unexported fields
}
type Repository ¶
type Repository struct { Opener func(string, *git.PlainOpenOptions) (*git.Repository, 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) 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) 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.