summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-29 16:18:04 -0600
committerJeff Carr <[email protected]>2025-01-29 16:18:04 -0600
commit8247d748bd26be6eb87a978573b0d435e83178a1 (patch)
treed45af68f4eec63a3d620033bd9e91b029639053d /common.go
parentb95118a30d152f7be7755059d87db58c2360e563 (diff)
general cleanupsv0.22.43v0.22.42
Diffstat (limited to 'common.go')
-rw-r--r--common.go23
1 files changed, 3 insertions, 20 deletions
diff --git a/common.go b/common.go
index 984a5f2..c90b9af 100644
--- a/common.go
+++ b/common.go
@@ -56,28 +56,9 @@ func (r *RepoList) FindRepo(path string) *RepoRow {
return repo
}
-/*
-func (r *RepoList) AllRepos() []*RepoRow {
- var all []*RepoRow
- for _, repo := range me.allrepos {
- all = append(all, repo)
- }
- return all
-}
-
-// deprecate this
-func AllRepos() []*RepoRow {
- var all []*RepoRow
- for _, repo := range me.allrepos {
- all = append(all, repo)
- }
- return all
-}
-*/
-
// a human readable state of the current repo
func (r *RepoRow) State() string {
- return r.gitState.String()
+ return r.pbState.String()
}
func (r *RepoRow) Scan() int {
@@ -126,6 +107,7 @@ func (r *RepoRow) LastTag() string {
return r.lastTag.String()
}
+/*
func (r *RepoRow) IsPerfect() bool {
if r.gitState.String() == "PERFECT" {
return true
@@ -135,6 +117,7 @@ func (r *RepoRow) IsPerfect() bool {
}
return false
}
+*/
func (r *RepoRow) Run(cmd []string) cmd.Status {
return r.pb.Run(cmd)