1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- package gitutil
- import (
- "github.com/gogs/git-module"
- )
- type ModuleStore interface {
-
- RepoAddRemote(repoPath, name, url string, opts ...git.AddRemoteOptions) error
-
-
- RepoDiffNameOnly(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error)
-
-
- RepoLog(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error)
-
-
- RepoMergeBase(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error)
-
- RepoRemoveRemote(repoPath, name string, opts ...git.RemoveRemoteOptions) error
-
- RepoTags(repoPath string, opts ...git.TagsOptions) ([]string, error)
-
- PullRequestMeta(headPath, basePath, headBranch, baseBranch string) (*PullRequestMeta, error)
-
- ListTagsAfter(repoPath, after string, limit int) (*TagsPage, error)
- }
- type module struct{}
- func (module) RepoAddRemote(repoPath, name, url string, opts ...git.AddRemoteOptions) error {
- return git.RepoAddRemote(repoPath, name, url, opts...)
- }
- func (module) RepoDiffNameOnly(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) {
- return git.RepoDiffNameOnly(repoPath, base, head, opts...)
- }
- func (module) RepoLog(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) {
- return git.RepoLog(repoPath, rev, opts...)
- }
- func (module) RepoMergeBase(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) {
- return git.RepoMergeBase(repoPath, base, head, opts...)
- }
- func (module) RepoRemoveRemote(repoPath, name string, opts ...git.RemoveRemoteOptions) error {
- return git.RepoRemoveRemote(repoPath, name, opts...)
- }
- func (module) RepoTags(repoPath string, opts ...git.TagsOptions) ([]string, error) {
- return git.RepoTags(repoPath, opts...)
- }
- var Module ModuleStore = module{}
|