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