Documentation ¶
Index ¶
- type FetchOptions
- type GitCLI
- func (g *GitCLI) AddConfigBool(global bool, key string, val bool) error
- func (g *GitCLI) AddConfigInt(global bool, key string, val int64) error
- func (g *GitCLI) AddConfigStr(global bool, key string, val string) error
- func (g *GitCLI) BranchDelete(remote bool, branch string) error
- func (g *GitCLI) BranchExists(remote bool, pattern string) (bool, error)
- func (g *GitCLI) BranchGetDefault(repositoryUrl string) (string, error)
- func (g *GitCLI) BranchList(remote bool) ([]string, error)
- func (g *GitCLI) Checkout(ref string, startPoint string) error
- func (g *GitCLI) CheckoutDetach() error
- func (g *GitCLI) Clean() error
- func (g *GitCLI) Cwd() string
- func (g *GitCLI) Executable() string
- func (g *GitCLI) Fetch(refSpec []string, options FetchOptions) error
- func (g *GitCLI) GetAllConfig(global bool, key string) ([]string, error)
- func (g *GitCLI) GetConfig(global bool, key string) (string, error)
- func (g *GitCLI) GlobalConfigPath() (string, error)
- func (g *GitCLI) Init(path string) error
- func (g *GitCLI) IsDetached() (bool, error)
- func (g *GitCLI) LfsFetch(ref string) error
- func (g *GitCLI) LfsInstall() error
- func (g *GitCLI) Log1(format ...string) (string, error)
- func (g *GitCLI) RemoteAdd(name string, url string) error
- func (g *GitCLI) Reset() error
- func (g *GitCLI) RevParse(ref string) (string, error)
- func (g *GitCLI) SetConfigBool(global bool, key string, val bool) error
- func (g *GitCLI) SetConfigInt(global bool, key string, val int64) error
- func (g *GitCLI) SetConfigStr(global bool, key string, val string) error
- func (g *GitCLI) SetCwd(cwd string)
- func (g *GitCLI) SetEnv(key string, val string)
- func (g *GitCLI) ShaExists(sha string) (bool, error)
- func (g *GitCLI) SparseCheckout(dirs []string) error
- func (g *GitCLI) SparseCheckoutNonConeMode(patterns []string) (err error)
- func (g *GitCLI) SubmoduleForeach(recursive bool, cmd ...string) (string, error)
- func (g *GitCLI) SubmoduleStatus() error
- func (g *GitCLI) SubmoduleSync(recursive bool) error
- func (g *GitCLI) SubmoduleUpdate(fetchDepth int, recursive bool) error
- func (g *GitCLI) TagExists(pattern string) (bool, error)
- func (g *GitCLI) UnsetConfig(global bool, key string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchOptions ¶
type GitCLI ¶
type GitCLI struct {
// contains filtered or unexported fields
}
GitCLI maintains a context for interacting with the Git command line executable.
func (*GitCLI) AddConfigBool ¶
func (*GitCLI) AddConfigInt ¶
func (*GitCLI) AddConfigStr ¶
func (*GitCLI) BranchExists ¶
func (*GitCLI) BranchGetDefault ¶
func (*GitCLI) CheckoutDetach ¶
CheckoutDetach detaches the current working directory if it is part of a git workspace.
func (*GitCLI) Executable ¶
func (*GitCLI) GetAllConfig ¶
func (*GitCLI) GlobalConfigPath ¶
GlobalConfigPath returns the path of the global configuration file
func (*GitCLI) IsDetached ¶
IsDetached returns true if the current working directory is part of a git workspace that is in a detached head state
func (*GitCLI) LfsInstall ¶
func (*GitCLI) SetConfigBool ¶
func (*GitCLI) SetConfigInt ¶
func (*GitCLI) SetConfigStr ¶
func (*GitCLI) SparseCheckout ¶
func (*GitCLI) SparseCheckoutNonConeMode ¶
func (*GitCLI) SubmoduleForeach ¶
func (*GitCLI) SubmoduleStatus ¶
func (*GitCLI) SubmoduleSync ¶
func (*GitCLI) SubmoduleUpdate ¶
Click to show internal directories.
Click to hide internal directories.