all repos — legit @ 0547b04260fde4b3c31c41bb11489a2063a81faa

web frontend for git

routes/util.go (view raw)

 1package routes
 2
 3import (
 4	"os"
 5	"path/filepath"
 6)
 7
 8func getDescription(path string) (desc string) {
 9	db, err := os.ReadFile(filepath.Join(path, "description"))
10	if err == nil {
11		desc = string(db)
12	} else {
13		desc = ""
14	}
15	return
16}
17
18func (d *deps) isIgnored(name string) bool {
19	for _, i := range d.c.Repo.Ignore {
20		if name == i {
21			return true
22		}
23	}
24
25	return false
26}