Versions in this module Expand all Collapse all v0 v0.0.0 Mar 10, 2026 Changes in this version + func SetDebugMode(enable bool) + type Gcm struct + func New(path string) *Gcm + func NewGcm(path string, execConfig *osexec.ExecConfig) *Gcm + func (G *Gcm) Add() *Gcm + func (G *Gcm) BranchExists(name string) (bool, error) + func (G *Gcm) CheckStagedChanges() *Gcm + func (G *Gcm) Checkout(branchName string) *Gcm + func (G *Gcm) CheckoutNewBranch(branchName string) *Gcm + func (G *Gcm) Commit(m string) *Gcm + func (G *Gcm) ConfigGet(key string) (string, error) + func (G *Gcm) Done() *Gcm + func (G *Gcm) Fetch(remote string) *Gcm + func (G *Gcm) FetchAll() *Gcm + func (G *Gcm) GetCommitCount() (int, error) + func (G *Gcm) GetCommitHash(refName string) (string, error) + func (G *Gcm) GetCommitMessage(ref string) (string, error) + func (G *Gcm) GetCurrentBranch() (string, error) + func (G *Gcm) GetCurrentCommitHash() (string, error) + func (G *Gcm) GetGitDIRAbsPath() (string, error) + func (G *Gcm) GetIgnoredFiles() ([]string, error) + func (G *Gcm) GetLatestTag() (string, bool, error) + func (G *Gcm) GetLatestTagHasPrefix(prefix string) (string, error) + func (G *Gcm) GetLatestTagMatchGlob(globPattern string) (string, error) + func (G *Gcm) GetLogOneLine(limit int) ([]string, error) + func (G *Gcm) GetModifiedFiles() ([]string, error) + func (G *Gcm) GetRemoteURL(remoteName string) (string, error) + func (G *Gcm) GetSortedTags() (string, error) + func (G *Gcm) GetStatusPorcelain() (string, error) + func (G *Gcm) GetSubPath() (string, error) + func (G *Gcm) GetSubPathToRoot() (string, error) + func (G *Gcm) GetTags() *Gcm + func (G *Gcm) GetTopPath() (string, error) + func (G *Gcm) GetTrackedFiles() ([]string, error) + func (G *Gcm) GetUntrackedFiles() ([]string, error) + func (G *Gcm) GetUpstreamBranch(branch string) (string, error) + func (G *Gcm) HasChanges() (bool, error) + func (G *Gcm) HasStagedChanges() (bool, error) + func (G *Gcm) HasUnstagedChanges() (bool, error) + func (G *Gcm) Init() *Gcm + func (G *Gcm) IsInsideWorkTree() (bool, error) + func (G *Gcm) ListBranches() ([]string, error) + func (G *Gcm) ListRemoteBranches() ([]string, error) + func (G *Gcm) Merge(featureBranchName string) *Gcm + func (G *Gcm) MergeAbort() *Gcm + func (G *Gcm) Must() *Gcm + func (G *Gcm) MustDone() *Gcm + func (G *Gcm) Nice() []byte + func (G *Gcm) None() + func (G *Gcm) Output() []byte + func (G *Gcm) Pull() *Gcm + func (G *Gcm) PullFrom(remote, branch string) *Gcm + func (G *Gcm) Push() *Gcm + func (G *Gcm) PushTag(tag string) *Gcm + func (G *Gcm) PushTags() *Gcm + func (G *Gcm) PushTo(remote, branch string) *Gcm + func (G *Gcm) PushWithUpstream(branchName string) *Gcm + func (G *Gcm) Reason() error + func (G *Gcm) Remote() *Gcm + func (G *Gcm) RemoteAdd(name, remoteLink string) *Gcm + func (G *Gcm) RemoteBranchExists(name string) (bool, error) + func (G *Gcm) RemoteRemove(name string) *Gcm + func (G *Gcm) RemoteSetURL(name, remoteLink string) *Gcm + func (G *Gcm) Reset() *Gcm + func (G *Gcm) ResetHard() *Gcm + func (G *Gcm) Result() ([]byte, error) + func (G *Gcm) ShowDebugMessage() *Gcm + func (G *Gcm) Status() *Gcm + func (G *Gcm) Tag(tag string) *Gcm + func (G *Gcm) TagExists(name string) (bool, error) + func (G *Gcm) TagList() *Gcm + func (G *Gcm) Tags() *Gcm + func (G *Gcm) UpdateCommandConfig(updateConfig func(cfg *osexec.CommandConfig)) *Gcm + func (G *Gcm) UpdateExecConfig(updateConfig func(cfg *osexec.ExecConfig)) *Gcm + func (G *Gcm) When(condition func(*Gcm) bool, run func(*Gcm) *Gcm) *Gcm + func (G *Gcm) WhenThen(condition func(*Gcm) (bool, error), run func(*Gcm) *Gcm) *Gcm + func (G *Gcm) WithDebug() *Gcm + func (G *Gcm) WithDebugMode(debugMode bool) *Gcm + func (G *Gcm) Zero()