summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-31 13:26:01 -0600
committerJeff Carr <[email protected]>2024-12-31 13:26:01 -0600
commitcff4af7935de4bcbb48f9b8b4c028be7e4e5e890 (patch)
treeaaef5ca0e520e0a3417105ffd4f3e562391cab35
parent1df95aec09c5ac799d84367ad3721e784eb76f30 (diff)
make going2git a seperate app
-rw-r--r--going2git/Makefile28
-rw-r--r--going2git/message.go23
2 files changed, 0 insertions, 51 deletions
diff --git a/going2git/Makefile b/going2git/Makefile
deleted file mode 100644
index 1e8c9f8..0000000
--- a/going2git/Makefile
+++ /dev/null
@@ -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
diff --git a/going2git/message.go b/going2git/message.go
deleted file mode 100644
index 817b5f2..0000000
--- a/going2git/message.go
+++ /dev/null
@@ -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 <[email protected]>"
- /*
- git2go.Trailer
- git2go.Trailer{Key: "Signed-off-by", Value: "Bob <[email protected]>"}}
- */
-
- fmt.Printf("%s", input)
- actual, err := git.MessageTrailers(input.Key)
- log.Info("actual", actual, err)
-}