git-preview @ main

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

git: fetch files only using ref
Sun, 11 Dec 2022
1 files changed, 2 insertions(+), 11 deletions(-)
M git/git.go

@@ -31,17 +31,8 @@ Size int64

IsFile bool } -func FilesAtHead(r *git.Repository, path string) ([]NiceTree, error) { - head, err := r.Head() - if err != nil { - return nil, fmt.Errorf("getting head: %w", err) - } - - return FilesAtRef(r, head, path)

… preview truncated