Documentation
¶
Index ¶
- Variables
- func ActiveReleaseBranches() []string
- func AllLocalBranches() []string
- func BranchExists(name string) bool
- func BranchTypeOf(name string) string
- func CurrentBranch() string
- func Exec(args ...string) error
- func ExecLines(args ...string) []string
- func ExecQuiet(args ...string) string
- func ExecResult(args ...string) (int, string, string)
- func FlowVersion(version string) string
- func HasStagedChanges() bool
- func HasUncommittedChanges() bool
- func IsGitFlowInitialized() bool
- func IsGitRepo() bool
- func LatestTag() string
- func RemoteExists(name string) bool
- func Remotes() []string
- func RemovePrefix(s, prefix string) string
- func Run(cmdStr string) error
- func RunLines(cmdStr string) []string
- func RunQuiet(cmdStr string) string
- func RunResult(cmdStr string) (int, string, string)
- func StashPop() error
- func StashSave(msg string) error
- func TagExists(tag string) bool
- type WorkTreeStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ProjectRoot string
ProjectRoot is the working directory for all git commands. Deprecated: will be removed once all callers migrate to GitClient.
Functions ¶
func ActiveReleaseBranches ¶
func ActiveReleaseBranches() []string
func AllLocalBranches ¶
func AllLocalBranches() []string
func BranchExists ¶
func BranchTypeOf ¶
BranchTypeOf delegates to branch.TypeOf for backward compatibility.
func CurrentBranch ¶
func CurrentBranch() string
func Exec ¶
Exec runs git with explicit arguments (no shell interpretation). This is the safe replacement for Run() that prevents shell injection.
func ExecResult ¶
ExecResult runs git with explicit arguments and captures output.
func FlowVersion ¶
func HasStagedChanges ¶
func HasStagedChanges() bool
func HasUncommittedChanges ¶
func HasUncommittedChanges() bool
func IsGitFlowInitialized ¶
func IsGitFlowInitialized() bool
func RemoteExists ¶
func RemovePrefix ¶
Types ¶
type WorkTreeStatus ¶
func WorkingTreeStatus ¶
func WorkingTreeStatus() WorkTreeStatus
Click to show internal directories.
Click to hide internal directories.