Documentation
¶
Index ¶
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
NewBranch string // The name of the new branch that new changes will be pushed to
CommitAuthor *domain.CommitAuthor // The author data is used when making commits, if the field is not set, the git configuration will be used
// 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.