summaryrefslogtreecommitdiff
path: root/tagWindow.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-04 02:16:19 -0600
committerJeff Carr <[email protected]>2024-11-04 02:16:19 -0600
commit8786690d4665648d2d0527101fdb047c2c4743ec (patch)
tree6d7e9b71029494af8a9478008cfaffcaad132ce1 /tagWindow.go
parentb45159100604ac62def0fd217f5f3ad5dd282c0d (diff)
init flag for new repos
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tagWindow.go')
-rw-r--r--tagWindow.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tagWindow.go b/tagWindow.go
index e756b49..5f7c7f7 100644
--- a/tagWindow.go
+++ b/tagWindow.go
@@ -351,7 +351,7 @@ func (t *Tag) Name() string {
return t.tag.String()
}
-func (t *Tag) getDate() (time.Time, error) {
+func (t *Tag) GetDate() (time.Time, error) {
const gitLayout = "Mon Jan 2 15:04:05 2006 -0700"
tagTime, err := time.Parse(gitLayout, t.date.String())
@@ -375,7 +375,7 @@ func (rs *RepoStatus) NewestTag() *Tag {
allTags = append(allTags, junk...)
for _, t := range allTags {
mu.Lock()
- if tagTime, err = t.getDate(); err != nil {
+ if tagTime, err = t.GetDate(); err != nil {
mu.Unlock()
continue
}