Commit Graph

11 Commits

Author SHA1 Message Date
github-actions[bot] bb7920d61f
Make all non-user-creatable structures non-comparable (#802) (#803)
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.

(cherry picked from commit dbe032c347)

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
2021-09-05 14:00:24 -07:00
Carlos Martín Nieto b7159b0cd4 Move from an Object interface to a type
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-04 14:47:10 +02:00
Carlos Martín Nieto a9d993f3d1 Remove useless includes 2014-12-11 02:59:07 +01:00
Carlos Martín Nieto 668aa5dae1 Make the constants have types
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-10-28 11:29:31 +01:00
Carlos Martín Nieto 0d58580249 Remove unnecessary heap allocation 2014-08-26 12:35:05 +02:00
David Calavera 29840d28ad Extract data into a go struct. 2014-08-22 22:36:18 -07:00
David Calavera 94d207e11c Add Repository#RevParseExt. 2014-07-24 21:03:50 -07:00
David Calavera 691d8f23ba Add Repository#RevParseSingle. 2014-07-24 17:41:10 -07:00
David Calavera 43b6e0b154 Make a new pointer to pass to git_revparse. 2014-07-24 17:20:22 -07:00
David Calavera 8bbcdd65a6 Move RevSpec#From and RevSpec#To to struct methods. 2014-07-24 17:02:14 -07:00
David Calavera 3003e5e190 Add Repository#RevParse. 2014-07-24 15:37:59 -07:00