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

Struct CheckoutOptions

checkout.go:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52type CheckoutProgressCallback func(path string, completed, total uint)
53
54type CheckoutOptions struct {
55 Strategy CheckoutStrategy // Default will be a dry run
56 DisableFilters bool // Don't apply filters like CRLF conversion
57 DirMode os.FileMode // Default is 0755
58 FileMode os.FileMode // Default is 0644 or 0755 as dictated by blob
59 FileOpenFlags int // Default is O_CREAT | O_TRUNC | O_WRONLY
60 NotifyFlags CheckoutNotifyType // Default will be none
61 NotifyCallback CheckoutNotifyCallback
62 ProgressCallback CheckoutProgressCallback
63 TargetDirectory string // Alternative checkout path to workdir
64 Paths []string
65 Baseline *Tree
66}
67
68func checkoutOptionsFromC(c *C.git_checkout_options) CheckoutOptions {
69 opts := CheckoutOptions{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected