From fbaf9d1d1ae0bb7b6e7ed9044945d4c9322d4c76 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sat, 4 Sep 2021 13:04:58 -0700 Subject: 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. --- commit.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'commit.go') 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 -- cgit v1.2.3