summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-21 09:33:58 -0600
committerJeff Carr <[email protected]>2025-02-21 09:33:58 -0600
commit3ab156a9c477f4d839e1384d424856519390b797 (patch)
tree2ef9a39700072fc23bda2f8292ba41b44bc4dde8
parentfa5c6572ff091da4096621dc99fa6cce693e026f (diff)
gitpb code is changingv0.22.58v0.22.57v0.22.56v0.22.55
-rw-r--r--windowBranches.go72
1 files changed, 37 insertions, 35 deletions
diff --git a/windowBranches.go b/windowBranches.go
index 3aba4e8..b641ac6 100644
--- a/windowBranches.go
+++ b/windowBranches.go
@@ -81,45 +81,47 @@ func MakeRepoBranchesWindow(repo *gitpb.Repo) *repoBranchesWindow {
grid.NewGroup("Hash")
grid.NextRow()
- for _, b := range repo.GetLocalBranches() {
- hash := repo.GetBranchHash(b)
- grid.NewLabel(b)
- grid.NewLabel(repo.GetBranchVersion(b))
- if s, err := repo.GetHashName(hash); err == nil {
- grid.NewLabel(s)
- } else {
- grid.NewLabel("err")
- }
- grid.NewLabel("local")
-
- grid.NewLabel(hash)
- grid.NewButton("Delete", func() {
- repo.RunVerbose([]string{"git", "branch", "-D", b})
- })
- grid.NextRow()
- }
+ /*
+ for _, b := range repo.GetLocalBranches() {
+ hash := repo.GetBranchHash(b)
+ grid.NewLabel(b)
+ grid.NewLabel(repo.GetBranchVersion(b))
+ if s, err := repo.GetHashName(hash); err == nil {
+ grid.NewLabel(s)
+ } else {
+ grid.NewLabel("err")
+ }
+ grid.NewLabel("local")
- for _, b := range repo.GetRemoteBranches() {
- hash := repo.GetBranchHash(b)
- grid.NewLabel(b)
- forgeuse := repo.GetBranchVersion(b)
- grid.NewLabel(forgeuse)
- if s, err := repo.GetHashName(hash); err == nil {
- grid.NewLabel(s)
- } else {
- grid.NewLabel("")
+ grid.NewLabel(hash)
+ grid.NewButton("Delete", func() {
+ repo.RunVerbose([]string{"git", "branch", "-D", b})
+ })
+ grid.NextRow()
}
- grid.NewLabel("remote")
- grid.NewLabel(hash)
- if b == "origin/HEAD" || forgeuse == "remote master" {
- // can't delete these
- } else {
- grid.NewButton("Delete Remote", func() {
- })
+ for _, b := range repo.GetRemoteBranches() {
+ hash := repo.GetBranchHash(b)
+ grid.NewLabel(b)
+ forgeuse := repo.GetBranchVersion(b)
+ grid.NewLabel(forgeuse)
+ if s, err := repo.GetHashName(hash); err == nil {
+ grid.NewLabel(s)
+ } else {
+ grid.NewLabel("")
+ }
+ grid.NewLabel("remote")
+
+ grid.NewLabel(hash)
+ if b == "origin/HEAD" || forgeuse == "remote master" {
+ // can't delete these
+ } else {
+ grid.NewButton("Delete Remote", func() {
+ })
+ }
+ grid.NextRow()
}
- grid.NextRow()
- }
+ */
return pw
}