Commit Graph

11 Commits

Author SHA1 Message Date
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 01a2d8d38d Create a ReferenceCollection for managing references
As with the other commits, this clears up the clutter in naming and
around the Repository's API.
2015-06-28 01:12:32 +02:00
Carlos Martín Nieto 85fde1fcfb Merge remote-tracking branch 'origin/master' into next 2015-06-08 04:07:49 +02:00
Patrick Steinhardt e300945a3d tests: always clean up temporary repository dirs
Some test repositories are not correctly removed after the tests
did run. Fix by introducing a function that is to be used for
cleaning up temporary test repositories.
2015-04-24 13:01:51 +02:00
Carlos Martín Nieto c4fce1a218 Update to libgit2 d675982a153
There's been some changes to the checkout strategy, especially the
SAFE_CREATE mode, which is now the RECREATE_MISSING flag, though that
shouldn't be necessary to use in the general case.

The largest changes come from the removal of the signture from
ref-modifying functions/methods and the removal of the reflog string in
all but those directly related to moving references.
2015-03-15 01:49:32 +01: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 1e651aaa22 Add simple test for `rev-parse HEAD`. 2014-07-24 17:08:58 -07:00
David Calavera 3003e5e190 Add Repository#RevParse. 2014-07-24 15:37:59 -07:00