示例#1
0
文件: index.go 项目: jgrocho/go-git2
func (idx *Index) Read() error {
	ecode := C.git_index_read(idx.git_index)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
示例#2
0
文件: git.go 项目: stettberger/go-git
func (v *Index) Read() (err error) {
	if ecode := C.git_index_read(v.git_index); ecode != GIT_SUCCESS {
		return LastError()
	}
	return
}