summaryrefslogtreecommitdiff
path: root/object.go
AgeCommit message (Collapse)Author
2021-09-05Make all non-user-creatable structures non-comparable (#802)lhchavez
This change makes all non-user-creatable structures non-comparable. This makes it easier to add changes later that don't introduce breaking changes from the go compatibility guarantees perspective. This, of course, implies that this change _is_ a breaking change, but since these structures are not intended to be created by users (or de-referenced), it should be okay.
2020-12-10Ensure that no pointer handles leak during the test (#712)lhchavez
This change makes sure that pointer handles are correctly cleaned up during tests.
2020-12-05Mark some symbols to be deprecated #minor (#698)lhchavez
This change introduces the file deprecated.go, which contains any constants, functions, and types that are slated to be deprecated in the next major release. These symbols are deprecated because they refer to old spellings in pre-1.0 libgit2. This also makes the build be done with the `-DDEPRECATE_HARD` flag to avoid regressions. This, together with [gorelease](https://godoc.org/golang.org/x/exp/cmd/gorelease)[1] should make releases safer going forward. 1: More information about how that works at https://go.googlesource.com/exp/+/refs/heads/master/apidiff/README.md
2019-02-11Uprev vendored libgit2 to v0.28lhchavez
New version is here!
2019-01-05Use git_object_t instead of deprecated git_otypeCarlos Martín Nieto
2018-08-08Remove uses of deprecated git_buf_freeCarlos Martín Nieto
2017-07-08Add Objecer interfaceCarlos Martín Nieto
We do want to be able to accept generic objects in functions. Add this interface so we can accept that instead of specific object types.
2017-07-08Third round of keep-alive aditionsCarlos Martín Nieto
2017-04-19Add support for getting short object IdAnkur Mittal
2015-08-04Move from an Object interface to a typeCarlos Martín Nieto
An Object should be about representing a libgit2 object rather than showing which methods it should support. Change any return of Object to *Object and provide methods to convert between this and the particular type.
2015-08-01Add ability to peel any git objectCalin Seciu
Includes support for 'git_object_peel'.
2015-03-04go fmtMark Probst
2014-12-11Remove useless includesCarlos Martín Nieto
2014-10-28Make the constants have typesCarlos Martín Nieto
While Go will assign the correct type to a const block when it auto-creates the values, assigning makes the const be typeless and will only gain it in each particular use. Make each constant in the blocks have an assigned type.
2014-06-09add support for annotated tagsFrank Benkstein
2014-05-26Keep a pointer to the repository in the objects and referencesCarlos Martín Nieto
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.
2014-05-25Give Object and Reference an Onwer accessorCarlos Martín Nieto
This reduces the need to carry around a pointer to the repository as well as the objects.
2014-04-01Adjust to Go tip changesCarlos Martín Nieto
It does not like breaking aliasing rules, so let's keep a casted pointer for when libgit2 wants that.
2013-11-14ObjectType: capitalise TagCarlos Martín Nieto
2013-11-14Don't repeat the pkg-config lineCarlos Martín Nieto
This is only needed once per package. Having it on every file makes the build system ask about it n times, which is silly.
2013-09-12Camel-case constantsCarlos Martín Nieto
Make the names look more like what you'd expect from Go.
2013-09-11Object types are constantsCarlos Martín Nieto
Define the object type values as constants
2013-04-25Merge pull request #16 from Merovius/pointerrecvVicent Martí
Give gitObject.Free a pointer-receiver
2013-04-26Give gitObject.Free a pointer-receiverAxel Wagner
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.
2013-04-26Add String() Method to ObjectTypeAxel Wagner
2013-04-18Ok, now with shared base objectVicent Marti
2013-04-16Take 2 on polymorphismVicent Marti