diff options
Diffstat (limited to 'hideFunction.go')
| -rw-r--r-- | hideFunction.go | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/hideFunction.go b/hideFunction.go index fcbbacf..65d04bd 100644 --- a/hideFunction.go +++ b/hideFunction.go @@ -8,25 +8,12 @@ import ( // like tcl/tk, use ENV variables to set display preferences func hideFunction(r *repolist.RepoRow) { - /* - if r.GoPath() == "go.wit.com/dev/alexflint/arg" { - log.Info("found autoHideReleased() =", me.autoHideReleased.Checked()) - log.Info("found alexflint/arg IsReleased() =", r.Status.IsReleased()) - } - */ - // always show dirty repos if r.Status.IsDirty() { r.Show() return } - // always show repos that have not been merged ? - // if r.GoState() == "merge to devel" { - // r.Show() - // return - // } - // hide read-only repos if os.Getenv("AUTOTYPIST_READONLY") == "hide" { if r.Status.ReadOnly() { @@ -48,34 +35,8 @@ func hideFunction(r *repolist.RepoRow) { } } - /* - if me.autoHideReleased.Checked() { - if r.Status.IsReleased() { - r.Hide() - return - } - } - */ - // show everything else. often this will be "unconforming" repos // if you what those repos ignored, add these to the config file // as read-only=true r.Show() } - -/* -func showHideRepos(repo *repolist.RepoRow) { - if repo.GoPath() == "go.wit.com/dev/alexflint/arg" { - log.Info("found autoHideReleased() =", me.autoHideReleased.Checked()) - log.Info("found alexflint/arg IsReleased() =", repo.Status.IsReleased()) - } - - if me.autoHideReleased.Checked() { - if repo.Status.IsReleased() { - repo.Hide() - return - } - } - repo.Show() -} -*/ |
