Documentation
¶
Index ¶
- func CommitChanges(message string) error
- func GetCommitLog(baseRef, headRef string) (string, error)
- func GetCommittedDiff(baseRef, headRef string) (string, error)
- func GetCommittedDiffStat(baseRef, headRef string) (string, error)
- func GetCurrentBranch() (string, error)
- func GetDefaultBaseBranch() (string, error)
- func GetRemoteURL(remoteName string) (string, error)
- func GetRepoRoot() (string, error)
- func GetStagedDiff() (string, error)
- func GetUnstagedDiff() (string, error)
- type DiffSummary
- type FileDiff
- type PushStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitChanges ¶
func GetCommitLog ¶ added in v0.0.27
func GetCommittedDiff ¶ added in v0.0.27
func GetCommittedDiffStat ¶ added in v0.0.27
func GetCurrentBranch ¶ added in v0.0.27
func GetDefaultBaseBranch ¶ added in v0.0.27
func GetRemoteURL ¶ added in v0.0.27
func GetRepoRoot ¶ added in v0.0.27
func GetStagedDiff ¶
func GetUnstagedDiff ¶ added in v0.0.5
Types ¶
type DiffSummary ¶ added in v0.0.14
type DiffSummary struct {
Files []FileDiff
}
func ParseDiffSummary ¶ added in v0.0.14
func ParseDiffSummary(diff string) DiffSummary
type PushStatus ¶ added in v0.0.27
type PushStatus struct {
HasUpstream bool
UpstreamRef string
RemoteName string
RemoteRef string
HeadPushed bool
}
func GetPushStatus ¶ added in v0.0.27
func GetPushStatus(branch string) (PushStatus, error)
Click to show internal directories.
Click to hide internal directories.