summaryrefslogtreecommitdiff
path: root/windowBranches.go
diff options
context:
space:
mode:
Diffstat (limited to 'windowBranches.go')
-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
}