summaryrefslogtreecommitdiff
path: root/branchesBox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-14 00:26:58 -0600
committerJeff Carr <[email protected]>2024-02-14 00:26:58 -0600
commita223e9f1c3f35edebf25e977fe897c707f6456da (patch)
tree79f89ae12db1f24cdc04e2a64ce339f6271174ef /branchesBox.go
parent07a60ffe3cefab8345c3750cdb8449886cf05342 (diff)
more code reorg
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'branchesBox.go')
-rw-r--r--branchesBox.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/branchesBox.go b/branchesBox.go
index f692d2e..9aa78b9 100644
--- a/branchesBox.go
+++ b/branchesBox.go
@@ -38,30 +38,4 @@ func (rs *RepoStatus) makeBranchesBox() {
log.Log(WARN, "Branches are not perfect")
}
})
- newgrid.NextRow()
-
- newgrid.NewButton("show .git/config", func() {
- if rs.gitConfig == nil {
- log.Log(WARN, "Nonexistant or damaged .git/config", rs.String())
- return
- }
- log.Log(WARN, ".git/config:", rs.realPath.String())
-
- // The info:
- for name, remote := range rs.gitConfig.remotes {
- log.Log(WARN, " ", name, "url:", remote.url)
- }
- for name, branch := range rs.gitConfig.branches {
- log.Log(WARN, " ", name, "remote:", branch.remote, "merge", branch.merge)
- }
- })
- newgrid.NextRow()
-
- newgrid.NewButton("CheckDirty()", func() {
- if rs.CheckDirty() {
- log.Log(WARN, "is dirty")
- } else {
- log.Log(WARN, "is not dirty")
- }
- })
}