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
}
type CheckoutCommit ¶
type CheckoutCommit struct {
Commit string
}
type CheckoutSemVer ¶
type CheckoutSemVer struct {
SemVer string
}
type CheckoutTag ¶
type CheckoutTag struct {
Tag string
}
Click to show internal directories.
Click to hide internal directories.