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