diff options
| author | lhchavez <[email protected]> | 2021-09-04 13:04:58 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-04 13:04:58 -0700 |
| commit | fbaf9d1d1ae0bb7b6e7ed9044945d4c9322d4c76 (patch) | |
| tree | 8d93d7f0a2d983e99b931ed4a8d9e904add20a0a /commit.go | |
| parent | df7084d36a771e4ef2a418c7d3c4367d920e4cf3 (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.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
