From a0428fa5f621d75a04ae1a85807f9616707d6ddd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 Jan 2025 00:52:17 -0600 Subject: move code into forgepb --- hideFunction.go | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 hideFunction.go (limited to 'hideFunction.go') diff --git a/hideFunction.go b/hideFunction.go deleted file mode 100644 index 2bcc383..0000000 --- a/hideFunction.go +++ /dev/null @@ -1,38 +0,0 @@ -package main - -// like tcl/tk, use ENV variables to set display preferences -/* -func hideFunction(r *repolist.RepoRow) { - // always show dirty repos - if r.Status.IsDirty() { - r.Show() - return - } - - // hide read-only repos - if os.Getenv("AUTOTYPIST_READONLY") == "hide" { - if r.Status.ReadOnly() { - // log.Info(r.Name(), "hiding read-only repo") - r.Hide() - return - } else { - // log.Info(r.Name(), "not hiding read-only repo") - } - } - - // show repos with mismatched mode - // this means, if you are in "devel" mode, show all the repos that - // might be stuck on the wrong branch, like 'master' or '' - if os.Getenv("AUTOTYPIST_MODE") != "" { - if !r.Status.IsCorrectMode(os.Getenv("AUTOTYPIST_MODE")) { - r.Show() - 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() -} -*/ -- cgit v1.2.3