示例#1
0
文件: object.go 项目: jgrocho/go-git2
func (obj *Object) Id() *Oid {
	oid := new(Oid)
	oid.git_oid = C.git_object_id(obj.git_object)
	if oid.git_oid == nil {
		return nil
	}
	return oid
}
示例#2
0
文件: object.go 项目: wid/git2go
func (o gitObject) Id() *Oid {
	return newOidFromC(C.git_object_id(o.ptr))
}
示例#3
0
文件: object.go 项目: tmc/goit
func (o Object) Oid() Oid {
	oid := Oid{}
	oid.oid = C.git_object_id(o.obj)
	return oid
}