Exemplo n.º 1
0
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
}
Exemplo n.º 2
0
func (object *OdbObject) Id() (oid *Oid) {
	return newOidFromC(C.git_odb_object_id(object.ptr))
}