stub in a show git refs() function
This commit is contained in:
parent
2c6dc806ef
commit
7f8cdac6fa
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
VERSION = $(shell git describe --tags)
|
||||
GUIVERSION = $(shell git describe --tags)
|
||||
BUILDTIME = $(shell date +%s)
|
||||
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
|
||||
|
||||
all: build
|
||||
|
||||
|
|
5
argv.go
5
argv.go
|
@ -11,8 +11,9 @@ import (
|
|||
var argv args
|
||||
|
||||
type args struct {
|
||||
Repo string `arg:"--repo" default:"/etc/gowebd/repomap" help:"what .git repo to use?"`
|
||||
Hostname string `arg:"--hostname" default:"go.wit.com" help:"hostname to use"`
|
||||
Repo string `arg:"--repo" default:"./" help:"what .git repo to use?"`
|
||||
Hostname string `arg:"--hostname" help:"hostname to use"`
|
||||
Refs bool `arg:"--refs" help:"list the git ref hashes"`
|
||||
}
|
||||
|
||||
func (args) Version() string {
|
||||
|
|
12
message.go
12
message.go
|
@ -12,6 +12,18 @@ var VERSION string
|
|||
var BUILDTIME string
|
||||
|
||||
func main() {
|
||||
if argv.Refs {
|
||||
showRefs()
|
||||
} else {
|
||||
testMessage()
|
||||
}
|
||||
}
|
||||
|
||||
func showRefs() {
|
||||
log.Info("how do you do this with libgit2 and git2go? notsure.")
|
||||
}
|
||||
|
||||
func testMessage() {
|
||||
var input git.Trailer
|
||||
|
||||
input.Key = "Co-authored-by"
|
||||
|
|
Loading…
Reference in New Issue