diff options
| author | Jeff Carr <[email protected]> | 2024-02-15 22:50:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-15 22:50:50 -0600 |
| commit | 2bc2096e841f3b262563126feb8a7a4c2b66f090 (patch) | |
| tree | a940a0200555f1a75096cdc1895246ed46ffb159 /git.go | |
| parent | e6eb92845ace066aa36c8730d28c3e53fe6bdca8 (diff) | |
xterm fixes
also a i18n syntax idea
show all tags in the main window
Diffstat (limited to 'git.go')
| -rw-r--r-- | git.go | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -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() } |
