(copts *C.git_remote_create_options, opts *RemoteCreateOptions, repo *Repository)
| 1229 | } |
| 1230 | |
| 1231 | func populateRemoteCreateOptions(copts *C.git_remote_create_options, opts *RemoteCreateOptions, repo *Repository) *C.git_remote_create_options { |
| 1232 | C.git_remote_create_options_init(copts, C.GIT_REMOTE_CREATE_OPTIONS_VERSION) |
| 1233 | if opts == nil { |
| 1234 | return nil |
| 1235 | } |
| 1236 | |
| 1237 | var cRepository *C.git_repository |
| 1238 | if repo != nil { |
| 1239 | cRepository = repo.ptr |
| 1240 | } |
| 1241 | copts.repository = cRepository |
| 1242 | copts.name = C.CString(opts.Name) |
| 1243 | copts.fetchspec = C.CString(opts.FetchSpec) |
| 1244 | copts.flags = C.uint(opts.Flags) |
| 1245 | |
| 1246 | return copts |
| 1247 | } |
| 1248 | |
| 1249 | func freeRemoteCreateOptions(ptr *C.git_remote_create_options) { |
| 1250 | if ptr == nil { |
no outgoing calls
no test coverage detected
searching dependent graphs…