diff options
| author | Calin Seciu <[email protected]> | 2015-09-21 14:50:57 +0300 |
|---|---|---|
| committer | Calin Seciu <[email protected]> | 2015-09-21 14:50:57 +0300 |
| commit | d54ea1d6a88406fc29db2596ce71f5c00aa4d205 (patch) | |
| tree | c9463a52615923ff561908e8aa25aa2f6ce68cc4 /repository.go | |
| parent | 0522886781055d59b780e00fddf3c8f7c9e118dc (diff) | |
Add stash support
Diffstat (limited to 'repository.go')
| -rw-r--r-- | repository.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
