summaryrefslogtreecommitdiff
path: root/reset.go
AgeCommit message (Collapse)Author
2016-05-29ResetDefaultToCommit maps git_reset_defaultMirko Nosenzo
Added support for default reset behavior
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-03-21Add support for libgit2's git_reset.Dylan Griffin
Adds a new method to *Repository called ResetToCommit as well as constants for the three reset modes that libgit2 currently supports. This does not need to be limited to Commit, we actually just need something with a gitObject, which blobs and other Objects have, they will just require different methods. I only need to be able to reset to commits, so that's all I'm implementing right now. Also adds a test which updates the test repository README twice and then resets to the first commit.