Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager for managing a git repository
func (*Manager) CreateBranchWithContentFromMain ¶
func (m *Manager) CreateBranchWithContentFromMain(branch string, writeContent func() error) error
CreateBranchWithContentFromMain creates a branch and invokes the writeContents func before committing
func (*Manager) CreateRepoWithContent ¶
func (m *Manager) CreateRepoWithContent(writeContent func() error) error
CreateRepoWithContent creates a repository and invokes the writeContents func before committing
func (*Manager) MergeBranches ¶
func (m *Manager) MergeBranches(branch1, branch2 string) ([]string, error)
MergeBranches merges two branches
type RepoManager ¶
type RepoManager interface {
CreateRepoWithContent(contentWriter func() error) error
CreateBranchWithContentFromMain(branch string, contentWriter func() error) error
MergeBranches(branch1, branch2 string) ([]string, error)
}
RepoManager for managing a git repository
Click to show internal directories.
Click to hide internal directories.