blob: 35a2e22343c7f2813afa4b9125af9deee2fee4b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)
}
|