()
| 352 | } |
| 353 | |
| 354 | func (sub *Submodule) Open() (*Repository, error) { |
| 355 | runtime.LockOSThread() |
| 356 | defer runtime.UnlockOSThread() |
| 357 | |
| 358 | var ptr *C.git_repository |
| 359 | ret := C.git_submodule_open(&ptr, sub.ptr) |
| 360 | runtime.KeepAlive(sub) |
| 361 | if ret < 0 { |
| 362 | return nil, MakeGitError(ret) |
| 363 | } |
| 364 | return newRepositoryFromC(ptr), nil |
| 365 | } |
| 366 | |
| 367 | func (sub *Submodule) Update(init bool, opts *SubmoduleUpdateOptions) error { |
| 368 | var err error |
nothing calls this directly
no test coverage detected