all repos — legit @ 845cce8ea7f1a12046b6c022d4b195c19fd69583

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}