diff options
| author | Calin Seciu <[email protected]> | 2015-07-31 09:51:19 +0200 |
|---|---|---|
| committer | Calin Seciu <[email protected]> | 2015-07-31 09:51:19 +0200 |
| commit | 12311c8528c577ebb11006f24c026c7a4d2f2de3 (patch) | |
| tree | 583968b97421bb100874f73246ee4af4017c6253 /repository.go | |
| parent | a2e4e9259be7fcd4019e85accc7f25f130c27d3c (diff) | |
Add TagsCollection
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 44509af..b17745d 100644 --- a/repository.go +++ b/repository.go @@ -27,6 +27,9 @@ type Repository struct { // Notes represents the collection of notes and can be used to // read, write and delete notes from this repository. Notes NoteCollection + // Tags represents the collection of tags and can be used to create, + // list and iterate tags in this repository. + Tags TagsCollection } func newRepositoryFromC(ptr *C.git_repository) *Repository { @@ -36,6 +39,7 @@ func newRepositoryFromC(ptr *C.git_repository) *Repository { repo.Submodules.repo = repo repo.References.repo = repo repo.Notes.repo = repo + repo.Tags.repo = repo runtime.SetFinalizer(repo, (*Repository).Free) |
