all repos — legit @ 79a8d28be2491d050401b3a923cbffcfdd716d48

web frontend for git

change "hide" to "unlisted"
Marco Andronaco andronacomarco@gmail.com
Fri, 04 Oct 2024 10:11:26 +0200
commit

79a8d28be2491d050401b3a923cbffcfdd716d48

parent

4881d9ea3d23204e6c2b7bb4118d5edf22b9425a

4 files changed, 5 insertions(+), 5 deletions(-)

jump to
M config/config.goconfig/config.go

@@ -13,8 +13,8 @@ Repo struct {

ScanPath string `yaml:"scanPath"` Readme []string `yaml:"readme"` MainBranch []string `yaml:"mainBranch"` - Hide []string `yaml:"hide,omitempty"` Ignore []string `yaml:"ignore,omitempty"` + Unlisted []string `yaml:"unlisted,omitempty"` } `yaml:"repo"` Dirs struct { Templates string `yaml:"templates"`
M readmereadme

@@ -60,8 +60,8 @@ traverse subdirs yet.

• dirs: use this to override the default templates and static assets. • repo.readme: readme files to look for. • repo.mainBranch: main branch names to look for. -• repo.hide: repos to hide, relative to scanPath. • repo.ignore: repos to ignore, relative to scanPath. +• repo.unlisted: repos to hide, relative to scanPath. • server.name: used for go-import meta tags and clone URLs.
M routes/routes.goroutes/routes.go

@@ -41,7 +41,7 @@ infos := []info{}

for _, dir := range dirs { name := dir.Name() - if !dir.IsDir() || d.isIgnored(name) || d.isHidden(name) { + if !dir.IsDir() || d.isIgnored(name) || d.isUnlisted(name) { continue }
M routes/util.goroutes/util.go

@@ -30,8 +30,8 @@ }

return } -func (d *deps) isHidden(name string) bool { - for _, i := range d.c.Repo.Hide { +func (d *deps) isUnlisted(name string) bool { + for _, i := range d.c.Repo.Unlisted { if name == i { return true }