NextName retrieves the next reference name. If the iteration is over, the returned error code is git.ErrorCodeIterOver
()
| 432 | // NextName retrieves the next reference name. If the iteration is over, |
| 433 | // the returned error code is git.ErrorCodeIterOver |
| 434 | func (v *ReferenceNameIterator) Next() (string, error) { |
| 435 | var ptr *C.char |
| 436 | |
| 437 | runtime.LockOSThread() |
| 438 | defer runtime.UnlockOSThread() |
| 439 | |
| 440 | ret := C.git_reference_next_name(&ptr, v.ptr) |
| 441 | if ret < 0 { |
| 442 | return "", MakeGitError(ret) |
| 443 | } |
| 444 | |
| 445 | return C.GoString(ptr), nil |
| 446 | } |
| 447 | |
| 448 | // Next retrieves the next reference. If the iterationis over, the |
| 449 | // returned error code is git.ErrorCodeIterOver |
nothing calls this directly
no test coverage detected