summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 22:28:50 -0600
committerJeff Carr <[email protected]>2025-01-07 22:28:50 -0600
commita15d447fbd49c2ef7732abc77c973a2469fdac99 (patch)
treecfa612c091e1d89f1714f290d1f9bbc42bc4827e /git.go
parentfcb74ce2e8ef9c62a30288ec028a69f275e2f8b3 (diff)
more removal of old codev0.22.32
Diffstat (limited to 'git.go')
-rw-r--r--git.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/git.go b/git.go
index e0be1e9..46a0ceb 100644
--- a/git.go
+++ b/git.go
@@ -89,20 +89,6 @@ func (rs *RepoStatus) gitDescribeByName(name string) (string, error) {
return strings.TrimSpace(output), r.Error
}
-// todo: don't run git every time?
-func (rs *RepoStatus) checkCurrentBranchVersion() string {
- out := rs.pb.GetCurrentVersion()
- rs.currentVersion.SetValue(out)
- return out
-}
-
-// this should get the most recent tag
-func (rs *RepoStatus) setLastTagVersion() {
- name := rs.pb.GetLastTagVersion()
- rs.lasttag.SetText(name)
- return
-}
-
func (rs *RepoStatus) populateTags() {
tmp := rs.realPath.String() + "/.git/refs/tags"
log.Log(REPO, "populateTags() path =", tmp)
@@ -115,17 +101,3 @@ func (rs *RepoStatus) populateTags() {
}
// rs.tagsDrop.SetText(rs.lasttagrev)
}
-
-// returns quickly based on the last time it was checked
-func (rs *RepoStatus) IsDirty() bool {
- return rs.pb.IsDirty()
-}
-
-func (rs *RepoStatus) CheckDirty() bool {
- if rs.pb.IsDirty() {
- rs.dirtyLabel.SetValue("dirty")
- return true
- }
- rs.dirtyLabel.SetValue("")
- return false
-}