Documentation ¶
Index ¶
- Variables
- func EveryCommit(localRepos string, opt ...Option) error
- func NewConfig() *config
- func SetProxy(proxies ...string)
- type Option
- func WithCheckoutCreate(b bool) Option
- func WithCheckoutForce(b bool) Option
- func WithCheckoutKeep(b bool) Option
- func WithContext(ctx context.Context) Option
- func WithDepth(depth int) Option
- func WithFetchAllTags(b bool) Option
- func WithFilterGitCommit(f func(r *object.Commit) bool) Option
- func WithFilterGitReference(f func(r *plumbing.Reference) bool) Option
- func WithForce(b bool) Option
- func WithHandleGitCommit(f func(r *object.Commit) error) Option
- func WithHandleGitReference(f func(r *plumbing.Reference) error) Option
- func WithNoFetchTags(b bool) Option
- func WithRecuriveSubmodule(b bool) Option
- func WithRemote(remote string) Option
- func WithUsernamePassword(username, password string) Option
- func WithVerifyTLS(b bool) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Exports = map[string]any{ "SetProxy": SetProxy, "Clone": clone, "Pull": pull, "Fetch": fetch, "Checkout": checkout, "IterateCommit": EveryCommit, "auth": WithUsernamePassword, "context": WithContext, "depth": WithDepth, "recursive": WithRecuriveSubmodule, "remote": WithRemote, "force": WithForce, "verify": WithVerifyTLS, "checkoutCreate": WithCheckoutCreate, "checkoutForce": WithCheckoutForce, "checkoutKeep": WithCheckoutKeep, "noFetchTags": WithNoFetchTags, "fetchAllTags": WithFetchAllTags, "handleCommit": WithHandleGitCommit, "filterCommit": WithFilterGitCommit, "handleReference": WithHandleGitReference, "filterReference": WithFilterGitReference, }
Functions ¶
func EveryCommit ¶
Types ¶
type Option ¶
type Option func(*config) error
func WithCheckoutCreate ¶
func WithCheckoutForce ¶
func WithCheckoutKeep ¶
func WithContext ¶
func WithFetchAllTags ¶
func WithFilterGitReference ¶
func WithHandleGitReference ¶
func WithNoFetchTags ¶
func WithRecuriveSubmodule ¶
func WithRemote ¶
func WithUsernamePassword ¶
func WithVerifyTLS ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.