make going2git a seperate app
This commit is contained in:
parent
1df95aec09
commit
cff4af7935
|
@ -1,28 +0,0 @@
|
|||
VERSION = $(shell git describe --tags)
|
||||
GUIVERSION = $(shell git describe --tags)
|
||||
BUILDTIME = $(shell date +%s)
|
||||
|
||||
all: build
|
||||
|
||||
build: goimports
|
||||
GO111MODULE=off go build \
|
||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||
|
||||
vet:
|
||||
GO111MODULE=off go vet
|
||||
|
||||
goimports:
|
||||
goimports -w *.go
|
||||
# // to globally reset paths:
|
||||
# // gofmt -w -r '"go.wit.com/gui/gadgets" -> "go.wit.com/lib/gadgets"' *.go
|
||||
|
||||
gocui: build
|
||||
reset
|
||||
./go-clone-test --gui gocui
|
||||
|
||||
install: goimports
|
||||
GO111MODULE=off go install \
|
||||
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||
|
||||
force: build
|
||||
./go-clone-test --force
|
|
@ -1,23 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
git "go.wit.com/lib/libgit2"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var input git.Trailer
|
||||
|
||||
input.Key = "Co-authored-by"
|
||||
input.Value = "Alice <alice@example.com>"
|
||||
/*
|
||||
git2go.Trailer
|
||||
git2go.Trailer{Key: "Signed-off-by", Value: "Bob <bob@example.com>"}}
|
||||
*/
|
||||
|
||||
fmt.Printf("%s", input)
|
||||
actual, err := git.MessageTrailers(input.Key)
|
||||
log.Info("actual", actual, err)
|
||||
}
|
Loading…
Reference in New Issue