all repos — legit @ 49b8b292897031c0d60777edfca11867569b2ee6

web frontend for git, written in go

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}