Documentation
¶
Index ¶
- type Repository
- func (r *Repository) CheckoutBranch(branchName string) error
- func (r *Repository) CreateTag(tagName, message string, overwrite bool) error
- func (r *Repository) CurrentBranch() (string, error)
- func (r *Repository) MergeBranches(sourceBranch, targetBranch, remoteName string) error
- func (r *Repository) PullBranch(branchName, remoteName string) error
- func (r *Repository) PushBranch(branchName, remoteName string) error
- func (r *Repository) PushTags(remoteName string) error
- func (r *Repository) ValidateBranch(branchName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func OpenRepository ¶
func OpenRepository(path string) (*Repository, error)
func (*Repository) CheckoutBranch ¶
func (r *Repository) CheckoutBranch(branchName string) error
func (*Repository) CreateTag ¶
func (r *Repository) CreateTag(tagName, message string, overwrite bool) error
func (*Repository) CurrentBranch ¶
func (r *Repository) CurrentBranch() (string, error)
func (*Repository) MergeBranches ¶
func (r *Repository) MergeBranches(sourceBranch, targetBranch, remoteName string) error
func (*Repository) PullBranch ¶
func (r *Repository) PullBranch(branchName, remoteName string) error
func (*Repository) PushBranch ¶
func (r *Repository) PushBranch(branchName, remoteName string) error
func (*Repository) PushTags ¶
func (r *Repository) PushTags(remoteName string) error
func (*Repository) ValidateBranch ¶
func (r *Repository) ValidateBranch(branchName string) error
Click to show internal directories.
Click to hide internal directories.