web frontend for git repositories, written in Go git.pocka.jp/legit.git
3

Configure Feed

Select the types of activity you want to include in your feed.

Replace go module name

Diverged enough.

Shota FUJI (Mar 18, 2025, 7:56 PM +0900) d8ad037b f8813068

+12 -12
+1 -1
config.yaml
··· 15 15 title: icy does git 16 16 description: come get your free software 17 17 server: 18 - name: git.icyphox.sh 18 + name: github.com/pocka 19 19 host: 0.0.0.0 20 20 port: 5555
+1 -1
go.mod
··· 1 - module git.icyphox.sh/legit 1 + module github.com/pocka/legit 2 2 3 3 go 1.22.0 4 4
+2 -2
main.go
··· 6 6 "log" 7 7 "net/http" 8 8 9 - "git.icyphox.sh/legit/config" 10 - "git.icyphox.sh/legit/routes" 9 + "github.com/pocka/legit/config" 10 + "github.com/pocka/legit/routes" 11 11 ) 12 12 13 13 func main() {
+1 -1
readme
··· 52 52 description: i think it's a skill issue 53 53 syntaxHighlight: monokailight 54 54 server: 55 - name: git.icyphox.sh 55 + name: github.com/pocka 56 56 host: 127.0.0.1 57 57 port: 5555 58 58
+2 -2
routes/data.go
··· 8 8 import ( 9 9 "html/template" 10 10 11 - "git.icyphox.sh/legit/config" 12 - "git.icyphox.sh/legit/git" 13 11 "github.com/go-git/go-git/v5/plumbing" 14 12 "github.com/go-git/go-git/v5/plumbing/object" 13 + "github.com/pocka/legit/config" 14 + "github.com/pocka/legit/git" 15 15 ) 16 16 17 17 // repositorySummary contains overview of a git repository.
+1 -1
routes/git.go
··· 7 7 "net/http" 8 8 "path/filepath" 9 9 10 - "git.icyphox.sh/legit/git/service" 11 10 securejoin "github.com/cyphar/filepath-securejoin" 11 + "github.com/pocka/legit/git/service" 12 12 ) 13 13 14 14 func (d *deps) InfoRefs(w http.ResponseWriter, r *http.Request) {
+1 -1
routes/handler.go
··· 3 3 import ( 4 4 "net/http" 5 5 6 - "git.icyphox.sh/legit/config" 6 + "github.com/pocka/legit/config" 7 7 ) 8 8 9 9 // Checks for gitprotocol-http(5) specific smells; if found, passes
+2 -2
routes/routes.go
··· 12 12 "strconv" 13 13 "strings" 14 14 15 - "git.icyphox.sh/legit/config" 16 - "git.icyphox.sh/legit/git" 17 15 securejoin "github.com/cyphar/filepath-securejoin" 18 16 "github.com/dustin/go-humanize" 19 17 "github.com/microcosm-cc/bluemonday" 18 + "github.com/pocka/legit/config" 19 + "github.com/pocka/legit/git" 20 20 "github.com/russross/blackfriday/v2" 21 21 ) 22 22
+1 -1
routes/util.go
··· 15 15 "github.com/alecthomas/chroma/v2/lexers" 16 16 "github.com/alecthomas/chroma/v2/styles" 17 17 18 - "git.icyphox.sh/legit/git" 18 + "github.com/pocka/legit/git" 19 19 ) 20 20 21 21 func isGoModule(gr *git.GitRepo) bool {