| 52 | type CheckoutProgressCallback func(path string, completed, total uint) |
| 53 | |
| 54 | type 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 | |
| 68 | func checkoutOptionsFromC(c *C.git_checkout_options) CheckoutOptions { |
| 69 | opts := CheckoutOptions{ |
nothing calls this directly
no outgoing calls
no test coverage detected