()
| 650 | } |
| 651 | |
| 652 | func (v *IndexConflictIterator) Next() (IndexConflict, error) { |
| 653 | var cancestor *C.git_index_entry |
| 654 | var cour *C.git_index_entry |
| 655 | var ctheir *C.git_index_entry |
| 656 | |
| 657 | runtime.LockOSThread() |
| 658 | defer runtime.UnlockOSThread() |
| 659 | |
| 660 | ecode := C.git_index_conflict_next(&cancestor, &cour, &ctheir, v.ptr) |
| 661 | if ecode < 0 { |
| 662 | return IndexConflict{}, MakeGitError(ecode) |
| 663 | } |
| 664 | ret := IndexConflict{ |
| 665 | Ancestor: newIndexEntryFromC(cancestor), |
| 666 | Our: newIndexEntryFromC(cour), |
| 667 | Their: newIndexEntryFromC(ctheir), |
| 668 | } |
| 669 | runtime.KeepAlive(v) |
| 670 | return ret, nil |
| 671 | } |
nothing calls this directly
no test coverage detected