this repo has no description

move everything to top-level dir

+2 -2
cmd/legit/main.go
··· 8 8 "net/http" 9 9 "os" 10 10 11 - "github.com/icyphox/bild/legit/config" 12 - "github.com/icyphox/bild/legit/routes" 11 + "github.com/icyphox/bild/config" 12 + "github.com/icyphox/bild/routes" 13 13 ) 14 14 15 15 func main() {
+2 -2
config.yaml
··· 9 9 - master 10 10 - main 11 11 dirs: 12 - templates: ./legit/templates 13 - static: ./legit/static 12 + templates: ./templates 13 + static: ./static 14 14 meta: 15 15 title: icy does git 16 16 description: come get your free software
-2
legit/.gitignore
··· 1 - legit 2 - result
legit/config/config.go config/config.go
legit/contrib/Dockerfile contrib/Dockerfile
legit/contrib/docker-compose.yml contrib/docker-compose.yml
legit/contrib/legit.service contrib/legit.service
legit/db/init.go db/init.go
legit/db/pubkeys.go db/pubkeys.go
legit/db/repo.go db/repo.go
legit/git/diff.go git/diff.go
legit/git/git.go git/git.go
legit/git/repo.go git/repo.go
legit/git/service/service.go git/service/service.go
legit/git/service/write_flusher.go git/service/write_flusher.go
legit/git/tree.go git/tree.go
+1 -1
legit/routes/auth.go routes/auth.go
··· 7 7 8 8 comatproto "github.com/bluesky-social/indigo/api/atproto" 9 9 "github.com/bluesky-social/indigo/xrpc" 10 - rauth "github.com/icyphox/bild/legit/routes/auth" 10 + rauth "github.com/icyphox/bild/routes/auth" 11 11 ) 12 12 13 13 const (
legit/routes/auth/auth.go routes/auth/auth.go
legit/routes/auth/types.go routes/auth/types.go
+1 -1
legit/routes/file.go routes/file.go
··· 11 11 "github.com/alecthomas/chroma/v2/formatters/html" 12 12 "github.com/alecthomas/chroma/v2/lexers" 13 13 "github.com/alecthomas/chroma/v2/styles" 14 - "github.com/icyphox/bild/legit/git" 14 + "github.com/icyphox/bild/git" 15 15 ) 16 16 17 17 func (h *Handle) listFiles(files []git.NiceTree, data map[string]any, w http.ResponseWriter) {
+1 -1
legit/routes/git.go routes/git.go
··· 7 7 "net/http" 8 8 "path/filepath" 9 9 10 - "github.com/icyphox/bild/legit/git/service" 10 + "github.com/icyphox/bild/git/service" 11 11 ) 12 12 13 13 func (d *Handle) InfoRefs(w http.ResponseWriter, r *http.Request) {
+4 -4
legit/routes/handler.go routes/handler.go
··· 9 9 _ "github.com/bluesky-social/indigo/xrpc" 10 10 "github.com/go-chi/chi/v5" 11 11 "github.com/gorilla/sessions" 12 - "github.com/icyphox/bild/legit/config" 13 - "github.com/icyphox/bild/legit/db" 14 - "github.com/icyphox/bild/legit/routes/auth" 15 - "github.com/icyphox/bild/legit/routes/tmpl" 12 + "github.com/icyphox/bild/config" 13 + "github.com/icyphox/bild/db" 14 + "github.com/icyphox/bild/routes/auth" 15 + "github.com/icyphox/bild/routes/tmpl" 16 16 ) 17 17 18 18 // Checks for gitprotocol-http(5) specific smells; if found, passes
legit/routes/html_util.go routes/html_util.go
+4 -4
legit/routes/routes.go routes/routes.go
··· 18 18 "github.com/go-chi/chi/v5" 19 19 "github.com/go-git/go-git/v5/plumbing" 20 20 "github.com/gorilla/sessions" 21 - "github.com/icyphox/bild/legit/config" 22 - "github.com/icyphox/bild/legit/db" 23 - "github.com/icyphox/bild/legit/git" 24 - "github.com/icyphox/bild/legit/routes/auth" 21 + "github.com/icyphox/bild/config" 22 + "github.com/icyphox/bild/db" 23 + "github.com/icyphox/bild/git" 24 + "github.com/icyphox/bild/routes/auth" 25 25 "github.com/russross/blackfriday/v2" 26 26 "golang.org/x/crypto/ssh" 27 27 )
legit/routes/tmpl/tmpl.go routes/tmpl/tmpl.go
+1 -1
legit/routes/util.go routes/util.go
··· 10 10 "strings" 11 11 12 12 "github.com/go-chi/chi/v5" 13 - "github.com/icyphox/bild/legit/git" 13 + "github.com/icyphox/bild/git" 14 14 "github.com/microcosm-cc/bluemonday" 15 15 ) 16 16
legit/static/legit.png static/legit.png
legit/static/style.css static/style.css
legit/templates/errors/404.html templates/errors/404.html
legit/templates/errors/500.html templates/errors/500.html
legit/templates/index.html templates/index.html
legit/templates/layouts/head.html templates/layouts/head.html
legit/templates/layouts/nav.html templates/layouts/nav.html
legit/templates/layouts/repo-header.html templates/layouts/repo-header.html
legit/templates/repo/commit.html templates/repo/commit.html
legit/templates/repo/empty.html templates/repo/empty.html
legit/templates/repo/file.html templates/repo/file.html
legit/templates/repo/log.html templates/repo/log.html
legit/templates/repo/new.html templates/repo/new.html
legit/templates/repo/refs.html templates/repo/refs.html
legit/templates/repo/repo.html templates/repo/repo.html
legit/templates/repo/tree.html templates/repo/tree.html
legit/templates/settings/keys.html templates/settings/keys.html
legit/templates/user/login.html templates/user/login.html