Documentation ¶
Index ¶
- type Git
- func (g *Git) Add(workingDir string, args ...string) error
- func (g *Git) AddWorktree(workingDir string, commitIsh string) (string, error)
- func (g *Git) Commit(workingDir string, message string) error
- func (g *Git) GetPushURL(remote string, token string) (string, error)
- func (g *Git) Pull(workingDir string, args ...string) error
- func (g *Git) Push(workingDir string, args ...string) error
- func (g *Git) RemoveWorktree(workingDir string, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct{}
func (*Git) AddWorktree ¶
AddWorktree creates a new Git worktree with a detached HEAD for the given commit-ish and returns its path.
func (*Git) GetPushURL ¶ added in v1.2.1
GetPushURL returns the push url with a token inserted
Click to show internal directories.
Click to hide internal directories.