Documentation ¶
Index ¶
- Constants
- type Auth
- type Branch
- type Commit
- type Diff
- type Git2GoDownloadTags
- type Git2GoStatus
- type GoGitSubmoduleRescursivity
- type GoGitTagMode
- type HEAD
- type Options
- func (opt *Options) OpenGit2GoRepo() (repo *gitgo.Repository, err error)
- func (opt *Options) OpenGoGitRepo() (repo *gogit.Repository, err error)
- func (opt *Options) WithContext(ctx context.Context) *Options
- func (opt *Options) WithLibGit2Go() *Options
- func (opt *Options) WithLibGoGit() *Options
- func (opt *Options) WithPreferredLib(lib PreferredLib) *Options
- func (opt *Options) WithRepo(repo *Repository)
- type PreferredLib
- type Reference
- type Remote
- type Repository
- type Status
- type User
Constants ¶
View Source
const ( PreferGoGit = PreferredLib("go-git") PreferGit2Go = PreferredLib("git2go") )
View Source
const ( DownloadTagsUnspecified = Git2GoDownloadTags(gitgo.DownloadTagsUnspecified) DownloadTagsAuto = Git2GoDownloadTags(gitgo.DownloadTagsAuto) DownloadTagsNone = Git2GoDownloadTags(gitgo.DownloadTagsNone) DownloadTagsAll = Git2GoDownloadTags(gitgo.DownloadTagsAll) )
View Source
const ( NoRecurseSubmodules = GoGitSubmoduleRescursivity(gogit.NoRecurseSubmodules) DefaultSubmoduleRecursionDepth = GoGitSubmoduleRescursivity(gogit.DefaultSubmoduleRecursionDepth) )
View Source
const ( InvalidTagMode = GoGitTagMode(gogit.InvalidTagMode) TagFollowing = GoGitTagMode(gogit.TagFollowing) AllTags = GoGitTagMode(gogit.AllTags) NoTags = GoGitTagMode(gogit.NoTags) )
View Source
const ( StatusCurrent = git2go.StatusCurrent StatusIndexNew = git2go.StatusIndexNew StatusIndexModified = git2go.StatusIndexModified StatusIndexDeleted = git2go.StatusIndexDeleted StatusIndexRenamed = git2go.StatusIndexRenamed StatusIndexTypeChange = git2go.StatusIndexTypeChange StatusWtNew = git2go.StatusWtNew StatusWtModified = git2go.StatusWtModified StatusWtDeleted = git2go.StatusWtDeleted StatusWtTypeChange = git2go.StatusWtTypeChange StatusWtRenamed = git2go.StatusWtRenamed StatusIgnored = git2go.StatusIgnored StatusConflicted = git2go.StatusConflicted )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
func (Auth) GenGit2GoAuth ¶
func (Auth) GenGoGitAuth ¶
func (a Auth) GenGoGitAuth(url string) (transport.AuthMethod, error)
type Git2GoDownloadTags ¶
type Git2GoDownloadTags gitgo.DownloadTags
type Git2GoStatus ¶
type GoGitSubmoduleRescursivity ¶
type GoGitSubmoduleRescursivity gogit.SubmoduleRescursivity
type GoGitTagMode ¶
type Options ¶
type Options struct { Progress io.Writer WorkDir string PreferredLib Auth // Opened Repository will be saved in the Options if enabled FollowOpenedRepo bool CtxRepo *Repository Context context.Context }
func (*Options) OpenGit2GoRepo ¶
func (opt *Options) OpenGit2GoRepo() (repo *gitgo.Repository, err error)
func (*Options) OpenGoGitRepo ¶
func (opt *Options) OpenGoGitRepo() (repo *gogit.Repository, err error)
func (*Options) WithLibGit2Go ¶
func (*Options) WithLibGoGit ¶
func (*Options) WithPreferredLib ¶
func (opt *Options) WithPreferredLib(lib PreferredLib) *Options
func (*Options) WithRepo ¶
func (opt *Options) WithRepo(repo *Repository)
type PreferredLib ¶
type PreferredLib string
type Repository ¶
type Repository struct { Git2Go *git2go.Repository GoGit *gogit.Repository }
Click to show internal directories.
Click to hide internal directories.