1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- package gitutil
- import (
- "github.com/gogs/git-module"
- )
- type ModuleStore interface {
-
- RemoteAdd(repoPath, name, url string, opts ...git.RemoteAddOptions) error
-
-
- DiffNameOnly(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error)
-
-
-
- Log(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error)
-
-
- MergeBase(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error)
-
- RemoteRemove(repoPath, name string, opts ...git.RemoteRemoveOptions) 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) RemoteAdd(repoPath, name, url string, opts ...git.RemoteAddOptions) error {
- return git.RemoteAdd(repoPath, name, url, opts...)
- }
- func (module) DiffNameOnly(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) {
- return git.DiffNameOnly(repoPath, base, head, opts...)
- }
- func (module) Log(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) {
- return git.Log(repoPath, rev, opts...)
- }
- func (module) MergeBase(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) {
- return git.MergeBase(repoPath, base, head, opts...)
- }
- func (module) RemoteRemove(repoPath, name string, opts ...git.RemoteRemoveOptions) error {
- return git.RemoteRemove(repoPath, name, opts...)
- }
- func (module) RepoTags(repoPath string, opts ...git.TagsOptions) ([]string, error) {
- return git.RepoTags(repoPath, opts...)
- }
- var Module ModuleStore = module{}
|