| Age | Commit message (Collapse) | Author |
|
|
|
Otherwise, the garbage collector might decide it's a good idea to throw
away the repository instance while the C object still has a pointer to
it. Hilarity ensues.
|
|
This reduces the need to carry around a pointer to the repository as
well as the objects.
|
|
It does not like breaking aliasing rules, so let's keep a casted pointer
for when libgit2 wants that.
|
|
|
|
This is only needed once per package. Having it on every file makes the
build system ask about it n times, which is silly.
|
|
Make the names look more like what you'd expect from Go.
|
|
Define the object type values as constants
|
|
Give gitObject.Free a pointer-receiver
|
|
This is needed to get runtime.SetFinalizer to work, which
expects a pointer-receiver. Without it the runtime will crash, when it
tries to garbage-collect an object.
|
|
|
|
|
|
|