Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IGitOperator ¶
type IGitOperator interface {
// Checkout local branch
Checkout(branchName string, create bool) error
// FetchOrigin fetch origin branches
FetchOrigin() error
// CurrentBranch just get current branch of your target repository.
CurrentBranch() (string, error)
// Merge would merge source into target branch. If current branch is not your target branch,
// this function would automatically check out, then execute the merge command.
Merge(source, target string) error
}
IGitOperator supports to manage the local git repository.
func NewBasedCmd ¶
func NewBasedCmd(dir string) IGitOperator
NewBasedCmd generate a git operator based command line.
Click to show internal directories.
Click to hide internal directories.