summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-22 05:24:31 -0600
committerJeff Carr <[email protected]>2024-02-22 05:24:31 -0600
commit5aaf02ee3aeafc17a70ddc32619a17ae19a6f1ed (patch)
tree83cb3fb39e81527e792e3067403c600ffad453e0 /git.go
parent70e8c98b1ca7adec7fb3352f3eb0ecc5d176619a (diff)
actually create the user branches
Diffstat (limited to 'git.go')
-rw-r--r--git.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/git.go b/git.go
index f67bc63..5cfa9eb 100644
--- a/git.go
+++ b/git.go
@@ -4,7 +4,6 @@ import (
"errors"
"os/user"
"strings"
- "time"
"unicode/utf8"
"io/ioutil"
@@ -20,9 +19,12 @@ func (rs *RepoStatus) GetCurrentBranchVersion() string {
return rs.currentVersion.String()
}
+/*
+// this isn't right
func (rs *RepoStatus) LastTagAge() (time.Time, string) {
return time.Now(), rs.lasttag.String()
}
+*/
func (rs *RepoStatus) GetLastTagVersion() string {
return rs.lasttag.String()
@@ -181,7 +183,7 @@ func (rs *RepoStatus) CheckDirty() bool {
func (rs *RepoStatus) CheckoutBranch(bname string) bool {
if rs.CheckDirty() {
log.Log(INFO, rs.realPath.String(), "is dirty")
- log.Info("bname is dirty", bname, rs.Path())
+ log.Info(bname, "is dirty", rs.Path())
return false
}
if !rs.TagExists(bname) {