Update vendored libgit2 to v0.27.0-rc1 #434

Merged
carlosmn merged 4 commits from cmn/bumping into master 2018-02-22 03:06:47 -06:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 661e1a6f1b - Show all commits

View File

@ -355,6 +355,7 @@ type MergeFileOptions struct {
TheirLabel string TheirLabel string
Favor MergeFileFavor Favor MergeFileFavor
Flags MergeFileFlags Flags MergeFileFlags
MarkerSize uint16
} }
func mergeFileOptionsFromC(c C.git_merge_file_options) MergeFileOptions { func mergeFileOptionsFromC(c C.git_merge_file_options) MergeFileOptions {
@ -364,6 +365,7 @@ func mergeFileOptionsFromC(c C.git_merge_file_options) MergeFileOptions {
TheirLabel: C.GoString(c.their_label), TheirLabel: C.GoString(c.their_label),
Favor: MergeFileFavor(c.favor), Favor: MergeFileFavor(c.favor),
Flags: MergeFileFlags(c.flags), Flags: MergeFileFlags(c.flags),
MarkerSize: uint16(c.marker_size),
} }
} }
@ -373,6 +375,7 @@ func populateCMergeFileOptions(c *C.git_merge_file_options, options MergeFileOpt
c.their_label = C.CString(options.TheirLabel) c.their_label = C.CString(options.TheirLabel)
c.favor = C.git_merge_file_favor_t(options.Favor) c.favor = C.git_merge_file_favor_t(options.Favor)
c.flags = C.git_merge_file_flag_t(options.Flags) c.flags = C.git_merge_file_flag_t(options.Flags)
c.marker_size = C.ushort(options.MarkerSize)
} }
func freeCMergeFileOptions(c *C.git_merge_file_options) { func freeCMergeFileOptions(c *C.git_merge_file_options) {