diff options
| author | Jeff Carr <[email protected]> | 2024-12-03 03:18:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-03 03:18:58 -0600 |
| commit | a6b9170ad0ae6ac3e7da794275d692f974ed2140 (patch) | |
| tree | 19d6a49b36bda5f10242d5d52db5811ac69bfdf9 | |
| parent | 0bc9bed597bb4d3333834da0ce4a4dc03b6b2d0d (diff) | |
move to protobufv0.22.25
| -rw-r--r-- | getPatches.go | 1 | ||||
| -rw-r--r-- | human.go | 27 |
2 files changed, 12 insertions, 16 deletions
diff --git a/getPatches.go b/getPatches.go index 90c429f..2fd0d36 100644 --- a/getPatches.go +++ b/getPatches.go @@ -86,7 +86,6 @@ func isEmpty(a any) bool { return false } - func (r *RepoList) MakePatchset(setdir string) bool { for _, repo := range r.allrepos { userv := repo.Status.GetUserVersion() @@ -4,7 +4,6 @@ package repolist import ( "fmt" - "time" "go.wit.com/lib/gui/shell" ) @@ -13,14 +12,13 @@ import ( // https://pkg.go.dev/fmt has good references for Sprintf func (r *RepoRow) StandardHeader() string { lastTag := r.LastTag() - tag := r.Status.NewestTag() - gitAge, _ := tag.GetDate() - dur := time.Since(gitAge) + tag := r.pb.NewestTag() + dur := tag.GetAge() - target := r.Status.GetTargetVersion() - master := r.Status.GetMasterVersion() - devel := r.Status.GetDevelVersion() - user := r.Status.GetUserVersion() + target := r.pb.GetTargetVersion() + master := r.pb.GetMasterVersion() + devel := r.pb.GetDevelVersion() + user := r.pb.GetUserVersion() header := fmt.Sprintf("%-35s %5s %-10s %-10s %-20s %-20s %-20s %-15s", r.Name(), shell.FormatDuration(dur), @@ -85,14 +83,13 @@ func (v *RepoList) PrintReport(readonly string, onlydirty string, perfect string // makes a human readable thing for standard out. func (r *RepoRow) StandardReleaseHeader() string { lastTag := r.LastTag() - tag := r.Status.NewestTag() - gitAge, _ := tag.GetDate() - dur := time.Since(gitAge) + tag := r.pb.NewestTag() + dur := tag.GetAge() - curname := r.Status.GetCurrentBranchName() - master := r.Status.GetMasterVersion() - user := r.Status.GetUserVersion() - target := r.Status.GetTargetVersion() + curname := r.pb.GetCurrentBranchName() + master := r.pb.GetMasterVersion() + user := r.pb.GetUserVersion() + target := r.pb.GetTargetVersion() header := fmt.Sprintf("%-35s %5s %-10s %-10s %-10s %-20s %-20s %-15s", r.Name(), shell.FormatDuration(dur), curname, |
