示例#1
0
func (revwalk *Revwalk) Push(oid *Oid) error {
	ecode := C.git_revwalk_push(revwalk.git_revwalk, oid.git_oid)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
示例#2
0
文件: walk.go 项目: jingweno/git2go
func (v *RevWalk) Push(id *Oid) error {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()

	ecode := C.git_revwalk_push(v.ptr, id.toC())
	if ecode < 0 {
		return MakeGitError(ecode)
	}
	return nil
}
示例#3
0
文件: walk.go 项目: bradhe/git2go
func (v *RevWalk) Push(id *Oid) {
	C.git_revwalk_push(v.ptr, id.toC())
}
示例#4
0
文件: git.go 项目: stettberger/go-git
func (v *RevWalk) Push(o *Oid) {
	C.git_revwalk_push(v.git_revwalk, o.git_oid)
}