Skip to content

Commit c1a7fc0

Browse files
author
Simon Prochazka
committed
feat: add Tags
Allows the user to get all tags so that they can use them for their own purpose.
1 parent c6f8dcb commit c1a7fc0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tags.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package git
2+
3+
func (g *Git) Tags() ([]*Tag, error) {
4+
tags, err := g.getTags()
5+
6+
if err != nil {
7+
return nil, err
8+
}
9+
10+
return tags, nil
11+
}

0 commit comments

Comments
 (0)