Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutBranch ¶ added in v0.3.0
CheckoutBranch will attempt to checkout the branch with the given name.
func DeleteBranches ¶
DeleteBranches will attempt to delete branches with the given names in the current repository.
func ErrNotInRepository ¶
ErrNotInRepository returns true if the given error occurred because the current working directory is not part of a Git repository.
Types ¶
type Branch ¶
type Branch struct { Type BranchType Name string Description string }
type BranchType ¶
type BranchType int
const ( BranchTypeNormal BranchType = iota BranchTypeCurrent BranchTypeWorktree )
func (BranchType) String ¶
func (bt BranchType) String() string
Click to show internal directories.
Click to hide internal directories.