(index uint)
| 456 | } |
| 457 | |
| 458 | func (v *Index) EntryByIndex(index uint) (*IndexEntry, error) { |
| 459 | centry := C.git_index_get_byindex(v.ptr, C.size_t(index)) |
| 460 | if centry == nil { |
| 461 | return nil, fmt.Errorf("Index out of Bounds") |
| 462 | } |
| 463 | ret := newIndexEntryFromC(centry) |
| 464 | runtime.KeepAlive(v) |
| 465 | return ret, nil |
| 466 | } |
| 467 | |
| 468 | func (v *Index) EntryByPath(path string, stage int) (*IndexEntry, error) { |
| 469 | cpath := C.CString(path) |
nothing calls this directly
no test coverage detected