Documentation
¶
Index ¶
- type Git
- func (g *Git) BranchExists(name string) (bool, error)
- func (g *Git) Checkout(name string) error
- func (g *Git) ConfigGet(key string) (string, error)
- func (g *Git) ConfigSet(key, value string) error
- func (g *Git) CreateBranch(name string) error
- func (g *Git) CurrentBranch() (string, error)
- func (g *Git) Fetch() error
- func (g *Git) IsDirty() (bool, error)
- func (g *Git) IsInsideRepo() bool
- func (g *Git) ListLocalBranches() ([]string, error)
- func (g *Git) PushWithLease(branch string) error
- func (g *Git) Rebase(target string) error
- func (g *Git) RebaseOnto(newBase, oldBase, branch string) error
- func (g *Git) RemoteExists(branch string) (bool, error)
- func (g *Git) RevParse(ref string) (string, error)
- func (g *Git) UpdateRef(refname, sha string) error
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func NewWithRunner ¶
func (*Git) CreateBranch ¶
func (*Git) CurrentBranch ¶
func (*Git) IsInsideRepo ¶
func (*Git) ListLocalBranches ¶
func (*Git) PushWithLease ¶
func (*Git) RebaseOnto ¶
Click to show internal directories.
Click to hide internal directories.