libgit2

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Implementation git.Implementation = "libgit2"
)

Variables

This section is empty.

Functions

func CheckoutStrategyForOptions added in v0.17.0

func CheckoutStrategyForOptions(ctx context.Context, opt git.CheckoutOptions) git.CheckoutStrategy

CheckoutStrategyForOptions returns the git.CheckoutStrategy for the given git.CheckoutOptions.

func RemoteCallbacks added in v0.17.0

func RemoteCallbacks(ctx context.Context, opts *git.AuthOptions) git2go.RemoteCallbacks

RemoteCallbacks constructs RemoteCallbacks with credentialsCallback and certificateCallback, and the given options if the given opts is not nil.

Types

type CheckoutBranch

type CheckoutBranch struct {
	Branch string
}

func (*CheckoutBranch) Checkout

func (c *CheckoutBranch) Checkout(ctx context.Context, path, url string, opts *git.AuthOptions) (*git.Commit, error)

type CheckoutCommit

type CheckoutCommit struct {
	Commit string
}

func (*CheckoutCommit) Checkout

func (c *CheckoutCommit) Checkout(ctx context.Context, path, url string, opts *git.AuthOptions) (*git.Commit, error)

type CheckoutSemVer

type CheckoutSemVer struct {
	SemVer string
}

func (*CheckoutSemVer) Checkout

func (c *CheckoutSemVer) Checkout(ctx context.Context, path, url string, opts *git.AuthOptions) (*git.Commit, error)

type CheckoutTag

type CheckoutTag struct {
	Tag string
}

func (*CheckoutTag) Checkout

func (c *CheckoutTag) Checkout(ctx context.Context, path, url string, opts *git.AuthOptions) (*git.Commit, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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