Versions in this module Expand all Collapse all v0 v0.9.0 Sep 28, 2023 v0.0.0 Jan 20, 2023 Changes in this version + const DefaultAuthUser + const DefaultGitEmail + const DefaultGitUser + const DefaultRemoteName + const DefaultTrunkBranch + func IsBothWorktreeAndStagingTrackedAndChanged(st extgogit.FileStatus) bool + func IsEitherWorktreeOrStagingTrackedAndChanged(st extgogit.FileStatus) bool + func IsTrackedAndChanged(c extgogit.StatusCode) bool + type CheckoutOpts func(o *extgogit.CheckoutOptions) + func CheckoutOptsCreateNew() CheckoutOpts + func CheckoutOptsSoftReset() CheckoutOpts + func CheckoutOptsTo(branch string) CheckoutOpts + type CloneOpts func(o *extgogit.CloneOptions) + type CommitOpts func(o *extgogit.CommitOptions) + type Git struct + func NewGit(o *GitOptions) (*Git, error) + func NewGitWithoutRepo(o *GitOptions) *Git + func (g *Git) Add(path string) error + func (g *Git) BasicAuth() *gogithttp.BasicAuth + func (g *Git) Branch() (string, error) + func (g *Git) Branches() ([]*plumbing.Reference, error) + func (g *Git) Checkout(opts ...CheckoutOpts) (*extgogit.Worktree, error) + func (g *Git) Clone(opts ...CloneOpts) (*extgogit.Repository, error) + func (g *Git) Commit(msg string, opts ...CommitOpts) (plumbing.Hash, error) + func (g *Git) Head() (*object.Commit, error) + func (g *Git) Options() *GitOptions + func (g *Git) Pull(opts ...PullOpts) error + func (g *Git) Push(opts ...PushOpts) error + func (g *Git) Remote(name string) (*GitRemote, error) + func (g *Git) RemoveBranch(rn plumbing.ReferenceName) error + func (g *Git) RemoveGoneBranches() error + func (g *Git) Repo() *extgogit.Repository + func (g *Git) Reset(opts ...ResetOpts) error + func (g *Git) SetUpstream(branch string) error + func (g *Git) Signature() *object.Signature + type GitOptions struct + Email string + Path string + RemoteName string + RepoUrl string + Token string + TrunkBranch string + User string + func (g *GitOptions) ShouldCloneIfNotExist() *GitOptions + func (g *GitOptions) Validate() error + type GitRemote struct + func (r *GitRemote) BasicAuth() *gogithttp.BasicAuth + func (r *GitRemote) Branches(opts ...ListOpts) ([]*plumbing.Reference, error) + func (r *GitRemote) Name() string + func (r *GitRemote) RemoveBranch(rn plumbing.ReferenceName, opts ...PushOpts) error + type ListOpts func(o *extgogit.ListOptions) + type PullOpts func(o *extgogit.PullOptions) + func PullOptsReference(name plumbing.ReferenceName) PullOpts + type PushOpts func(o *extgogit.PushOptions) + func PushOptBranch(branch string) PushOpts + type ResetOpts func(o *extgogit.ResetOptions) + func ResetOptsHard() ResetOpts