Documentation
¶
Index ¶
- type Git
- func (g *Git) BareRepoDir() (string, error)
- func (g *Git) DefaultBranch() (string, error)
- func (g *Git) HasUnpushedCommits() (bool, error)
- func (g *Git) IsDirty() (bool, error)
- func (g *Git) Run(args ...string) (string, error)
- func (g *Git) RunStream(stderr io.Writer, args ...string) (string, error)
- func (g *Git) WorktreeRoot() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
func (*Git) BareRepoDir ¶
func (*Git) DefaultBranch ¶
func (*Git) HasUnpushedCommits ¶
func (*Git) RunStream ¶ added in v0.6.2
RunStream captures stdout and returns it, while streaming stderr to the given writer in real-time. Useful for commands like `git fetch --progress` where progress output goes to stderr.
func (*Git) WorktreeRoot ¶
Click to show internal directories.
Click to hide internal directories.