From 1ea9bdf841cb4eae4cd7b1d96288852e799fbeb2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 1 Jul 2025 18:54:41 -0500 Subject: deprecate old stuff --- doCheckout.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doCheckout.go') diff --git a/doCheckout.go b/doCheckout.go index 49c11f9..50feaf7 100644 --- a/doCheckout.go +++ b/doCheckout.go @@ -130,16 +130,16 @@ func doAllCheckoutUser() error { log.Printf("User branch check. %d total repos. (%d ok) (%d not on user branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now))) if err != nil { // display all repos not on user - me.found = new(gitpb.Repos) + found := new(gitpb.Repos) all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() if repo.GetCurrentBranchName() != repo.GetUserBranchName() { - me.found.AppendByGoPath(repo) + found.AppendByGoPath(repo) } } - me.forge.PrintHumanTable(me.found) - log.Printf("There are %d repos that are NOT on the user branch\n", me.found.Len()) + me.forge.PrintHumanTable(found) + log.Printf("There are %d repos that are NOT on the user branch\n", found.Len()) return err } return nil @@ -172,16 +172,16 @@ func doAllCheckoutDevel() error { log.Printf("Devel branch check. %d total repos. (%d ok) (%d not on devel branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now))) if err != nil { // display all repos not on user - me.found = new(gitpb.Repos) + found := new(gitpb.Repos) all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() if repo.GetCurrentBranchName() != repo.GetDevelBranchName() { - me.found.AppendByGoPath(repo) + found.AppendByGoPath(repo) } } - me.forge.PrintHumanTable(me.found) - log.Printf("There are %d repos that are NOT on the devel branch\n", me.found.Len()) + me.forge.PrintHumanTable(found) + log.Printf("There are %d repos that are NOT on the devel branch\n", found.Len()) return err } return nil @@ -239,16 +239,16 @@ func doAllCheckoutMaster() error { log.Printf("Master branch check. %d total repos. (%d ok) (%d not on master branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now))) if err != nil { // display all repos not on master - me.found = new(gitpb.Repos) + found := new(gitpb.Repos) all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() if repo.GetCurrentBranchName() != repo.GetMasterBranchName() { - me.found.AppendByGoPath(repo) + found.AppendByGoPath(repo) } } - me.forge.PrintHumanTable(me.found) - log.Printf("There are %d repos that are NOT on the master branch\n", me.found.Len()) + me.forge.PrintHumanTable(found) + log.Printf("There are %d repos that are NOT on the master branch\n", found.Len()) return err } return nil -- cgit v1.2.3