git

package
v0.5.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 BranchExists(name string) bool

func BranchTypeOf

func BranchTypeOf(name string) string

BranchTypeOf delegates to branch.TypeOf for backward compatibility.

func CurrentBranch

func CurrentBranch() string

func Exec

func Exec(args ...string) error

Exec runs git with explicit arguments (no shell interpretation). This is the safe replacement for Run() that prevents shell injection.

func ExecLines

func ExecLines(args ...string) []string

ExecLines runs git with explicit arguments and returns stdout split by newline.

func ExecQuiet

func ExecQuiet(args ...string) string

ExecQuiet runs git with explicit arguments and returns only stdout.

func ExecResult

func ExecResult(args ...string) (int, string, string)

ExecResult runs git with explicit arguments and captures output.

func FlowVersion

func FlowVersion(version string) string

func HasStagedChanges

func HasStagedChanges() bool

func HasUncommittedChanges

func HasUncommittedChanges() bool

func IsGitFlowInitialized

func IsGitFlowInitialized() bool

func IsGitRepo

func IsGitRepo() bool

func LatestTag

func LatestTag() string

func RemoteExists

func RemoteExists(name string) bool

func Remotes

func Remotes() []string

func RemovePrefix

func RemovePrefix(s, prefix string) string

func Run

func Run(cmdStr string) error

func RunLines

func RunLines(cmdStr string) []string

func RunQuiet

func RunQuiet(cmdStr string) string

func RunResult

func RunResult(cmdStr string) (int, string, string)

func StashPop

func StashPop() error

func StashSave

func StashSave(msg string) error

func TagExists

func TagExists(tag string) bool

Types

type WorkTreeStatus

type WorkTreeStatus struct {
	Staged    int
	Unstaged  int
	Untracked int
	Total     int
}

func WorkingTreeStatus

func WorkingTreeStatus() WorkTreeStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL