func (idx *Index) Read() error { ecode := C.git_index_read(idx.git_index) if ecode != git_SUCCESS { return gitError() } return nil }
func (v *Index) Read() (err error) { if ecode := C.git_index_read(v.git_index); ecode != GIT_SUCCESS { return LastError() } return }