libgit2

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 13 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.

Types

type CheckoutBranch

type CheckoutBranch struct {
	Branch       string
	LastRevision string
}

func (*CheckoutBranch) Checkout

func (c *CheckoutBranch) Checkout(ctx context.Context, path, url string, opts *git.AuthOptions) (_ *git.Commit, err 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, err 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, err error)

type CheckoutTag

type CheckoutTag struct {
	Tag          string
	LastRevision string
}

func (*CheckoutTag) Checkout

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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