summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorDylan Griffin <[email protected]>2015-03-21 18:37:00 -0400
committerDylan Griffin <[email protected]>2015-03-21 18:37:00 -0400
commit89d67328f3682c49db296831538c8638fcfe53fe (patch)
treee78c8ff24d52ea3dc469a8b7e131513243c62af6 /commit.go
parentc4fce1a218fd33938c0be90e939531c0a00ebf7f (diff)
Add support for libgit2's git_reset.
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.
Diffstat (limited to 'commit.go')
0 files changed, 0 insertions, 0 deletions