From d54ea1d6a88406fc29db2596ce71f5c00aa4d205 Mon Sep 17 00:00:00 2001 From: Calin Seciu Date: Mon, 21 Sep 2015 14:50:57 +0300 Subject: Add stash support --- repository.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'repository.go') diff --git a/repository.go b/repository.go index d8e398b..4bf8531 100644 --- a/repository.go +++ b/repository.go @@ -30,6 +30,9 @@ type Repository struct { // Tags represents the collection of tags and can be used to create, // list and iterate tags in this repository. Tags TagsCollection + // Stashes represents the collection of stashes and can be used to + // save, apply and iterate over stash states in this repository. + Stashes StashCollection } func newRepositoryFromC(ptr *C.git_repository) *Repository { @@ -40,6 +43,7 @@ func newRepositoryFromC(ptr *C.git_repository) *Repository { repo.References.repo = repo repo.Notes.repo = repo repo.Tags.repo = repo + repo.Stashes.repo = repo runtime.SetFinalizer(repo, (*Repository).Free) -- cgit v1.2.3