summaryrefslogtreecommitdiff
path: root/message.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-31 13:03:06 -0600
committerJeff Carr <[email protected]>2024-12-31 13:03:06 -0600
commit2c6dc806efb2443daa82948482b1b1e313936716 (patch)
tree33b1e0ff0ffaa2b256de028945e148432188dee1 /message.go
Day 1. test build should workv0.0.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'message.go')
-rw-r--r--message.go27
1 files changed, 27 insertions, 0 deletions
diff --git a/message.go b/message.go
new file mode 100644
index 0000000..35a2e22
--- /dev/null
+++ b/message.go
@@ -0,0 +1,27 @@
+package main
+
+import (
+ "fmt"
+
+ git "go.wit.com/lib/libgit2"
+ "go.wit.com/log"
+)
+
+// are sent via -ldflags at buildtime
+var VERSION string
+var BUILDTIME string
+
+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)
+}