summaryrefslogtreecommitdiff
path: root/going2git/message.go
blob: 817b5f20992069b04b9321b1c12aa941e4ccdce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)
}