Exemple #1
0
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
}
Exemple #2
0
func (o gitObject) Id() *Oid {
	return newOidFromC(C.git_object_id(o.ptr))
}
Exemple #3
0
func (o Object) Oid() Oid {
	oid := Oid{}
	oid.oid = C.git_object_id(o.obj)
	return oid
}