all repos — legit @ 95dec0f0564c158d2884faa24cac650043e8dc37

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}