yakgit

package
v1.2.7-sp1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

func EveryCommit(localRepos string, opt ...Option) error

func NewConfig

func NewConfig() *config

func SetProxy

func SetProxy(proxies ...string)

Types

type Option

type Option func(*config) error

func WithCheckoutCreate

func WithCheckoutCreate(b bool) Option

func WithCheckoutForce

func WithCheckoutForce(b bool) Option

func WithCheckoutKeep

func WithCheckoutKeep(b bool) Option

func WithContext

func WithContext(ctx context.Context) Option

func WithDepth

func WithDepth(depth int) Option

func WithFetchAllTags

func WithFetchAllTags(b bool) Option

func WithFilterGitCommit

func WithFilterGitCommit(f func(r *object.Commit) bool) Option

func WithFilterGitReference

func WithFilterGitReference(f func(r *plumbing.Reference) bool) Option

func WithForce

func WithForce(b bool) Option

func WithHandleGitCommit

func WithHandleGitCommit(f func(r *object.Commit) error) Option

func WithHandleGitReference

func WithHandleGitReference(f func(r *plumbing.Reference) error) Option

func WithNoFetchTags

func WithNoFetchTags(b bool) Option

func WithRecuriveSubmodule

func WithRecuriveSubmodule(b bool) Option

func WithRemote

func WithRemote(remote string) Option

func WithUsernamePassword

func WithUsernamePassword(username, password string) Option

func WithVerifyTLS

func WithVerifyTLS(b bool) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL