Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitService ¶
type GitService interface {
LatestCommit() string
RevParse(thing string) string
CreateBranch(branchName string) error
Switch(branch string) error
CherryPick(commit string) error
Push() error
PushNewBranch() error
BuildBranchNameFromCommit(commitSha string) string
AbortCherryPick() error
AmendCommitWithFixup(commitSha string) error
RebaseInteractiveAutosquash(commitSha string) error
CurrentBranch() string
LogFrom(branch string) ([]string, error)
LogFromMainOrMaster() ([]string, error)
LocalBranchExists(branch string) bool
RemoteBranchExists(branch string) bool
PreviousCommit() (string, error)
}
func NewGitService ¶
func NewGitService() GitService
Click to show internal directories.
Click to hide internal directories.