Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { BlobObject(plumbing.Hash) (*object.Blob, error) BlobObjects() (*object.BlobIter, error) Branch(string) (*config.Branch, error) Branches() (storer.ReferenceIter, error) CommitObject(plumbing.Hash) (*object.Commit, error) CommitObjects() (object.CommitIter, error) Config() (*config.Config, error) ConfigScoped(config.Scope) (*config.Config, error) CreateBranch(*config.Branch) error CreateRemote(*config.RemoteConfig) (*git.Remote, error) CreateRemoteAnonymous(*config.RemoteConfig) (*git.Remote, error) CreateTag(string, plumbing.Hash, *git.CreateTagOptions) (*plumbing.Reference, error) DeleteBranch(string) error DeleteObject(plumbing.Hash) error DeleteRemote(string) error DeleteTag(string) error Fetch(*git.FetchOptions) error FetchContext(context.Context, *git.FetchOptions) error Head() (*plumbing.Reference, error) Log(*git.LogOptions) (object.CommitIter, error) Notes() (storer.ReferenceIter, error) Object(plumbing.ObjectType, plumbing.Hash) (object.Object, error) Objects() (*object.ObjectIter, error) Prune(git.PruneOptions) error Push(*git.PushOptions) error PushContext(context.Context, *git.PushOptions) error Reference(plumbing.ReferenceName, bool) (*plumbing.Reference, error) References() (storer.ReferenceIter, error) Remote(string) (*git.Remote, error) Remotes() ([]*git.Remote, error) RepackObjects(*git.RepackConfig) error ResolveRevision(plumbing.Revision) (*plumbing.Hash, error) SetConfig(*config.Config) error Tag(string) (*plumbing.Reference, error) TagObject(plumbing.Hash) (*object.Tag, error) TagObjects() (*object.TagIter, error) Tags() (storer.ReferenceIter, error) TreeObject(plumbing.Hash) (*object.Tree, error) TreeObjects() (*object.TreeIter, error) Worktree() (*git.Worktree, error) }
Repository is an interface generated for "github.com/go-git/go-git/v5.Repository".
type Worktree ¶
type Worktree interface { Add(string) (plumbing.Hash, error) AddGlob(string) error AddWithOptions(*git.AddOptions) error Checkout(*git.CheckoutOptions) error Clean(*git.CleanOptions) error Commit(string, *git.CommitOptions) (plumbing.Hash, error) Grep(*git.GrepOptions) ([]git.GrepResult, error) Move(string, string) (plumbing.Hash, error) Pull(*git.PullOptions) error PullContext(context.Context, *git.PullOptions) error Remove(string) (plumbing.Hash, error) RemoveGlob(string) error Reset(*git.ResetOptions) error Status() (git.Status, error) Submodule(string) (*git.Submodule, error) Submodules() (git.Submodules, error) }
Worktree is an interface generated for "github.com/go-git/go-git/v5.Worktree".
Click to show internal directories.
Click to hide internal directories.