Skip to content

Commit 661e1a6

Browse files
committed
merge: expose the conflict marker size option
1 parent cff7116 commit 661e1a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

merge.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ type MergeFileOptions struct {
355355
TheirLabel string
356356
Favor MergeFileFavor
357357
Flags MergeFileFlags
358+
MarkerSize uint16
358359
}
359360

360361
func mergeFileOptionsFromC(c C.git_merge_file_options) MergeFileOptions {
@@ -364,6 +365,7 @@ func mergeFileOptionsFromC(c C.git_merge_file_options) MergeFileOptions {
364365
TheirLabel: C.GoString(c.their_label),
365366
Favor: MergeFileFavor(c.favor),
366367
Flags: MergeFileFlags(c.flags),
368+
MarkerSize: uint16(c.marker_size),
367369
}
368370
}
369371

@@ -373,6 +375,7 @@ func populateCMergeFileOptions(c *C.git_merge_file_options, options MergeFileOpt
373375
c.their_label = C.CString(options.TheirLabel)
374376
c.favor = C.git_merge_file_favor_t(options.Favor)
375377
c.flags = C.git_merge_file_flag_t(options.Flags)
378+
c.marker_size = C.ushort(options.MarkerSize)
376379
}
377380

378381
func freeCMergeFileOptions(c *C.git_merge_file_options) {

0 commit comments

Comments
 (0)