summaryrefslogtreecommitdiff
path: root/going2git/message.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 01:34:52 -0600
committerJeff Carr <[email protected]>2024-12-17 01:34:52 -0600
commit17421bd22f0277503fe3a9911f26f1d80e663ad1 (patch)
treedbc4551c3c80bc9beeddcbb4a92ce16bee860947 /going2git/message.go
parentc72040a9fb2eae45eb2c3230e148afe302f23ba2 (diff)
trash old and no longer working test code
Diffstat (limited to 'going2git/message.go')
-rw-r--r--going2git/message.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/going2git/message.go b/going2git/message.go
new file mode 100644
index 0000000..f2bc2ba
--- /dev/null
+++ b/going2git/message.go
@@ -0,0 +1,23 @@
+package main
+
+import (
+ "fmt"
+
+ git "go.wit.com/lib/git2go"
+ "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)
+}