()
| 73 | } |
| 74 | |
| 75 | func (o *Object) Type() ObjectType { |
| 76 | ret := ObjectType(C.git_object_type(o.ptr)) |
| 77 | runtime.KeepAlive(o) |
| 78 | return ret |
| 79 | } |
| 80 | |
| 81 | // Owner returns a weak reference to the repository which owns this object. |
| 82 | // This won't keep the underlying repository alive, but it should still be |