(copts *C.git_checkout_options)
| 180 | } |
| 181 | |
| 182 | func freeCheckoutOptions(copts *C.git_checkout_options) { |
| 183 | if copts == nil { |
| 184 | return |
| 185 | } |
| 186 | C.free(unsafe.Pointer(copts.target_directory)) |
| 187 | if copts.paths.count > 0 { |
| 188 | freeStrarray(&copts.paths) |
| 189 | } |
| 190 | if copts.notify_payload != nil { |
| 191 | pointerHandles.Untrack(copts.notify_payload) |
| 192 | } else if copts.progress_payload != nil { |
| 193 | pointerHandles.Untrack(copts.progress_payload) |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | // Updates files in the index and the working tree to match the content of |
| 198 | // the commit pointed at by HEAD. opts may be nil. |
no test coverage detected
searching dependent graphs…