Documentation
¶
Index ¶
- type Git
- func (g *Git) AddRemote(name, url string) error
- func (g *Git) BranchExist(remoteName, branchName string) (bool, error)
- func (g *Git) ChangeBranch(branchName string) error
- func (g *Git) Changes() (bool, error)
- func (g *Git) Clone(baseName, headName string) error
- func (g *Git) Commit(commitAuthor *domain.CommitAuthor, commitMessage string) error
- func (g *Git) Push(remoteName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct {
Directory string // The (temporary) directory that should be worked within
Repo string // The "url" to the repo, any format can be used as long as it's pushable
FetchDepth int // Limit fetching to the specified number of commits
// contains filtered or unexported fields
}
Git is an implementation of git that executes git as a command This has drawbacks, but the big benefit is that the configuration probably already present can be reused
func (*Git) BranchExist ¶ added in v0.4.0
BranchExist checks if the new branch exists
func (*Git) ChangeBranch ¶ added in v0.10.0
ChangeBranch changes the branch
Click to show internal directories.
Click to hide internal directories.