Help us shape the future of Go! Take the 2026 Go Developer Survey

gogit

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Implementation git.Implementation = "go-git"
)

Variables

This section is empty.

Functions

func CheckoutStrategyForOptions

func CheckoutStrategyForOptions(_ context.Context, opts git.CheckoutOptions) git.CheckoutStrategy

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

Types

type CheckoutBranch

type CheckoutBranch struct {
	Branch            string
	RecurseSubmodules bool
}

func (*CheckoutBranch) Checkout

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

type CheckoutCommit

type CheckoutCommit struct {
	Branch            string
	Commit            string
	RecurseSubmodules bool
}

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
	RecurseSubmodules bool
}

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
	RecurseSubmodules bool
}

func (*CheckoutTag) Checkout

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

Jump to

Keyboard shortcuts

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