Documentation
¶
Index ¶
- Variables
- func ActiveReleaseBranches() []string
- func AllLocalBranches() []string
- func BranchCommitSubjects(parentBranch, branchName string) []string
- func BranchExists(name string) bool
- func BranchMergeCommitSubjects(parentBranch, branchName string) []string
- 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 ¶
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 BranchCommitSubjects ¶ added in v0.5.22
BranchCommitSubjects returns the commit message subjects (first line) for commits reachable from branchName but not from parentBranch, excluding merge commits. These are the work-commits that will land in the parent on finish.
func BranchExists ¶
func BranchMergeCommitSubjects ¶ added in v0.5.22
BranchMergeCommitSubjects returns merge-commit subjects for commits reachable from branchName but not from parentBranch. A non-zero result means the branch has sync merges that could be rebased away for a cleaner graph before finishing.
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