summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2021-09-04 13:04:58 -0700
committerGitHub <[email protected]>2021-09-04 13:04:58 -0700
commitfbaf9d1d1ae0bb7b6e7ed9044945d4c9322d4c76 (patch)
tree8d93d7f0a2d983e99b931ed4a8d9e904add20a0a /commit.go
parentdf7084d36a771e4ef2a418c7d3c4367d920e4cf3 (diff)
Add `Repository.CreateCommitBuffer` (#781)
This commit adds the Go binding for `git_commit_create_buffer`. This will be used to support the 1.2.0 commit create callback.
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/commit.go b/commit.go
index 1c546b3..3a07fa8 100644
--- a/commit.go
+++ b/commit.go
@@ -12,6 +12,14 @@ import (
"unsafe"
)
+// MessageEncoding is the encoding of commit messages.
+type MessageEncoding string
+
+const (
+ // MessageEncodingUTF8 is the default message encoding.
+ MessageEncodingUTF8 MessageEncoding = "UTF-8"
+)
+
// Commit
type Commit struct {
Object