From 2bc2096e841f3b262563126feb8a7a4c2b66f090 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 15 Feb 2024 22:50:50 -0600 Subject: xterm fixes also a i18n syntax idea show all tags in the main window --- git.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'git.go') diff --git a/git.go b/git.go index 3c8efae..4875812 100644 --- a/git.go +++ b/git.go @@ -2,6 +2,7 @@ package repostatus import ( "strings" + "time" "unicode/utf8" "io/ioutil" @@ -9,16 +10,6 @@ import ( "go.wit.com/log" ) -func (rs *RepoStatus) String() string { - return rs.path.String() -} - -/* -func (rs *RepoStatus) GetPath() string { - return rs.path.String() -} -*/ - func (rs *RepoStatus) GetCurrentBranchName() string { return rs.currentBranch.String() } @@ -27,6 +18,10 @@ func (rs *RepoStatus) GetCurrentBranchVersion() string { return rs.currentVersion.String() } +func (rs *RepoStatus) LastTagAge() (time.Time, string) { + return time.Now(), rs.lasttag.String() +} + func (rs *RepoStatus) GetLastTagVersion() string { return rs.lasttag.String() } -- cgit v1.2.3