Documentation
¶
Index ¶
- type Command
- func (c *Command) AddGlob(pattern string) error
- func (c *Command) CheckoutNewBranch(branch string) error
- func (c *Command) Clone(repoURL string) error
- func (c *Command) CloneBranch(repoURL string, branch string) error
- func (c *Command) Commit(msg string) error
- func (c *Command) Init() error
- func (c *Command) RemoteAdd(name string, url string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command implements methods with same interface than official git commands but over go-git.
func NewCommand ¶
NewCommand is a constructor for a gitw Command object, used to execute equivalents to git commands over a specific repository. Returns a Command struct
func (*Command) CheckoutNewBranch ¶
CheckoutNewBranch executes a `git checkout -b` equivalent
func (*Command) CloneBranch ¶
CloneBranch executes a `git clone`, but obtaining only specified branch.
Click to show internal directories.
Click to hide internal directories.