Documentation
¶
Index ¶
- func AddAll(repoPath string) error
- func CheckoutBranch(repoPath, branch string) error
- func Commit(repoPath, message string) error
- func CreateBranch(repoPath, branch string) error
- func CreatePR(repoPath string) error
- func CurrentBranch(repoPath string) (string, error)
- func DeleteBranch(repoPath, branch string) error
- func HasChanges(repoPath string) (bool, error)
- func IsClean(repoPath string) (bool, error)
- func Push(repoPath, remote, branch string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutBranch ¶
CheckoutBranch checks out a branch.
func CreateBranch ¶
CreateBranch creates and checks out a new branch from the current HEAD.
func CurrentBranch ¶
CurrentBranch returns the current branch name.
func DeleteBranch ¶
DeleteBranch deletes a local branch.
func HasChanges ¶
HasChanges checks if there are staged changes to commit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.