示例#1
0
文件: odb.go 项目: jgrocho/go-git2
func (obj *OdbObject) Id() *Oid {
	oid := new(Oid)
	oid.git_oid = C.git_odb_object_id(obj.git_odb_object)
	if oid.git_oid == nil {
		return nil
	}
	return oid
}
示例#2
0
文件: odb.go 项目: joshi4/shortbread
func (object *OdbObject) Id() (oid *Oid) {
	return newOidFromC(C.git_odb_object_id(object.ptr))
}