summaryrefslogtreecommitdiff
path: root/repository.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2016-03-17 18:14:30 +0100
committerCarlos Martín Nieto <[email protected]>2016-03-17 18:14:30 +0100
commit836b6c56bef179785db6c6cfd98c6f0cc7cebdcb (patch)
tree364b26e832bb5e68d1979b60dcea73fbc6908ae9 /repository.go
parente095c85fd06b5820d2f0098ff3e66b266553dbd5 (diff)
parent71ff6ab0d5afb13c555da799ee69b055acd3954c (diff)
Merge pull request #257 from clns/stash-support
[next] Add stash support
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/repository.go b/repository.go
index 77e9f9c..2e6b81d 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)