diff options
| author | Jeff Carr <[email protected]> | 2025-01-07 18:45:34 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-07 18:45:34 -0600 |
| commit | d9a54a6c31770f13fd77aecd012e1158b6140616 (patch) | |
| tree | 3448849bf60da011f4c2fda7ba0927efcbc8de0e /tagWindow.go | |
| parent | 9221f83aaf06eb53b63f77a1e13887aad143e070 (diff) | |
still rm old code
Diffstat (limited to 'tagWindow.go')
| -rw-r--r-- | tagWindow.go | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/tagWindow.go b/tagWindow.go index fed6f1a..5eb4b84 100644 --- a/tagWindow.go +++ b/tagWindow.go @@ -70,14 +70,16 @@ func (rs *RepoStatus) makeTagBox(box *gui.Node) error { } } tagB.group.NewButton("delete all", func() { - for i, t := range tagB.tags { - if t.hidden { - // log.Info("tag is hidden", i, t.tag.String()) - continue + /* + for i, t := range tagB.tags { + if t.hidden { + // log.Info("tag is hidden", i, t.tag.String()) + continue + } + log.Info("tag is shown", i, t.tag.String()) + // rs.DeleteTag(t) } - log.Info("tag is shown", i, t.tag.String()) - rs.DeleteTag(t) - } + */ }) grid := tagB.group.NewGrid("tags", 0, 0) @@ -104,17 +106,19 @@ func (rs *RepoStatus) makeTagBox(box *gui.Node) error { rTag.subject = grid.NewLabel(tag.GetSubject()) rTag.deleteB = grid.NewButton("delete", func() { - tagversion := tag.GetRefname() - log.Info("remove tag", tagversion) - var all [][]string - all = append(all, []string{"git", "tag", "--delete", tagversion}) - all = append(all, []string{"git", "push", "--delete", "origin", tagversion}) + /* + tagversion := tag.GetRefname() + log.Info("remove tag", tagversion) + var all [][]string + all = append(all, []string{"git", "tag", "--delete", tagversion}) + all = append(all, []string{"git", "push", "--delete", "origin", tagversion}) - if rs.DoAll(all) { - log.Info("TAG DELETED", rs.Path(), tagversion) - } else { - log.Info("TAG DELETE FAILED", rs.Path(), tagversion) - } + if rs.DoAll(all) { + log.Info("TAG DELETED", rs.Path(), tagversion) + } else { + log.Info("TAG DELETE FAILED", rs.Path(), tagversion) + } + */ }) tagB.tags = append(tagB.tags, rTag) @@ -216,6 +220,7 @@ func (rtags *GitTagBox) PruneSmart() { } } +/* // deleting it locally triggers some but when // the git server was uncontactable (over IPv6 if that matters, probably it doesn't) // and then the local delete re-added it into the tag @@ -241,6 +246,7 @@ func (rs *RepoStatus) DeleteTag(rt *Tag) { log.Info("output:", output) } +*/ func (rt *Tag) TagString() string { return rt.tag.String() |
