discob

command module
v0.0.0-...-f641d4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 11 Imported by: 0

README

discob

Super-simple web-based Git repository browser.

how it works

Send a GET request to <commit identifier>.example.com/path/to/file

Supported commit identifiers include tags, branches, and commit hashes.

If the file given is a directory (ends in /), then it will build a simple directory listing.

sample GET request
GET /server.go
Host: master.discob.git.masonx.ca

options

  -host string
        Host to bind to
  -port int
        Port to listen on (default 8080)
  -repo string
        Repository to serve (default ".")
  -tmpl string
        Template HTML to use for directory listings (default "directory.html")

libraries used

go-git: Git interface

how to run

Needs Go 1.11 (modules) support.

export GO111MODULE="on"
go build github.com/ohnx/discob

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL