git-preview @ main

static git web frontend but with images and html previews + code truncation

unveil: initial commit
Thu, 22 Dec 2022
4 files changed, 36 insertions(+), 22 deletions(-)
M go.mod

@@ -8,6 +8,7 @@ github.com/bluekeyes/go-gitdiff v0.7.0

github.com/dustin/go-humanize v1.0.0 github.com/go-git/go-git/v5 v5.5.1 github.com/sosedoff/gitkit v0.3.0 + golang.org/x/sys v0.3.0 gopkg.in/yaml.v3 v3.0.0 )

@@ -30,7 +31,6 @@ github.com/xanzy/ssh-agent v0.3.3 // indirect

golang.org/x/crypto v0.4.0 // indirect golang.org/x/mod v0.7.0 // indirect golang.org/x/net v0.4.0 // indirect

… preview truncated

M main.go

@@ -20,9 +20,9 @@ if err != nil {

log.Fatal(err) } - // for path := range []string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates} { - // Unveil(path, "r") - // } + if err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r"); err != nil { + log.Fatal(err) + }

… preview truncated

M unveil.go

@@ -1,30 +1,26 @@

//go:build openbsd // +build openbsd -// Doesn't do anything yet. - package main - -/* -#include <stdlib.h> -#include <unistd.h>

… preview truncated

… and 1 more changed files not shown in this preview