MCPcopy Create free account
hub / github.com/libgit2/git2go / CloneOptions

Struct CloneOptions

clone.go:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14type RemoteCreateCallback func(repo *Repository, name, url string) (*Remote, error)
15
16type CloneOptions struct {
17 CheckoutOptions CheckoutOptions
18 FetchOptions FetchOptions
19 Bare bool
20 CheckoutBranch string
21 RemoteCreateCallback RemoteCreateCallback
22}
23
24func Clone(url string, path string, options *CloneOptions) (*Repository, error) {
25 curl := C.CString(url)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected