summaryrefslogtreecommitdiff
path: root/hideFunction.go
diff options
context:
space:
mode:
Diffstat (limited to 'hideFunction.go')
-rw-r--r--hideFunction.go31
1 files changed, 10 insertions, 21 deletions
diff --git a/hideFunction.go b/hideFunction.go
index 30bf485..a9f835b 100644
--- a/hideFunction.go
+++ b/hideFunction.go
@@ -20,6 +20,12 @@ func hideFunction(r *repolist.RepoRow) {
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() {
@@ -41,9 +47,8 @@ func hideFunction(r *repolist.RepoRow) {
}
}
- // hide perfectly clean repos
- if os.Getenv("AUTOTYPIST_CLEAN") == "hide" {
- if r.IsPerfect() {
+ if me.autoHideReleased.Checked() {
+ if r.Status.IsReleased() {
r.Hide()
return
}
@@ -55,30 +60,13 @@ func hideFunction(r *repolist.RepoRow) {
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())
}
- // always show dirty repos
- if repo.IsDirty() {
- repo.Show()
- return
- }
- // always show repos that have not been merged ?
- if repo.GoState() == "merge to devel" {
- repo.Show()
- return
- }
- // hide read-only repos. These are repos that do not
- // match things in the users config file (.config/autotypist)
- if me.autoHideReadOnly.Checked() {
- if repo.Status.ReadOnly() {
- repo.Hide()
- return
- }
- }
if me.autoHideReleased.Checked() {
if repo.Status.IsReleased() {
repo.Hide()
@@ -87,3 +75,4 @@ func showHideRepos(repo *repolist.RepoRow) {
}
repo.Show()
}
+*/