@@ -280,7 +280,7 @@ impl MergeFileOptions {
280
280
self
281
281
}
282
282
283
- fn flag ( & mut self , opt : u32 , val : bool ) -> & mut MergeFileOptions {
283
+ fn flag ( & mut self , opt : raw :: git_merge_file_flag_t , val : bool ) -> & mut MergeFileOptions {
284
284
if val {
285
285
self . raw . flags |= opt;
286
286
} else {
@@ -291,52 +291,52 @@ impl MergeFileOptions {
291
291
292
292
/// Create standard conflicted merge files
293
293
pub fn style_standard ( & mut self , standard : bool ) -> & mut MergeFileOptions {
294
- self . flag ( raw:: GIT_MERGE_FILE_STYLE_MERGE as u32 , standard)
294
+ self . flag ( raw:: GIT_MERGE_FILE_STYLE_MERGE , standard)
295
295
}
296
296
297
297
/// Create diff3-style file
298
298
pub fn style_diff3 ( & mut self , diff3 : bool ) -> & mut MergeFileOptions {
299
- self . flag ( raw:: GIT_MERGE_FILE_STYLE_DIFF3 as u32 , diff3)
299
+ self . flag ( raw:: GIT_MERGE_FILE_STYLE_DIFF3 , diff3)
300
300
}
301
301
302
302
/// Condense non-alphanumeric regions for simplified diff file
303
303
pub fn simplify_alnum ( & mut self , simplify : bool ) -> & mut MergeFileOptions {
304
- self . flag ( raw:: GIT_MERGE_FILE_SIMPLIFY_ALNUM as u32 , simplify)
304
+ self . flag ( raw:: GIT_MERGE_FILE_SIMPLIFY_ALNUM , simplify)
305
305
}
306
306
307
307
/// Ignore all whitespace
308
308
pub fn ignore_whitespace ( & mut self , ignore : bool ) -> & mut MergeFileOptions {
309
- self . flag ( raw:: GIT_MERGE_FILE_IGNORE_WHITESPACE as u32 , ignore)
309
+ self . flag ( raw:: GIT_MERGE_FILE_IGNORE_WHITESPACE , ignore)
310
310
}
311
311
312
312
/// Ignore changes in amount of whitespace
313
313
pub fn ignore_whitespace_change ( & mut self , ignore : bool ) -> & mut MergeFileOptions {
314
- self . flag ( raw:: GIT_MERGE_FILE_IGNORE_WHITESPACE_CHANGE as u32 , ignore)
314
+ self . flag ( raw:: GIT_MERGE_FILE_IGNORE_WHITESPACE_CHANGE , ignore)
315
315
}
316
316
317
317
/// Ignore whitespace at end of line
318
318
pub fn ignore_whitespace_eol ( & mut self , ignore : bool ) -> & mut MergeFileOptions {
319
- self . flag ( raw:: GIT_MERGE_FILE_IGNORE_WHITESPACE_EOL as u32 , ignore)
319
+ self . flag ( raw:: GIT_MERGE_FILE_IGNORE_WHITESPACE_EOL , ignore)
320
320
}
321
321
322
322
/// Use the "patience diff" algorithm
323
323
pub fn patience ( & mut self , patience : bool ) -> & mut MergeFileOptions {
324
- self . flag ( raw:: GIT_MERGE_FILE_DIFF_PATIENCE as u32 , patience)
324
+ self . flag ( raw:: GIT_MERGE_FILE_DIFF_PATIENCE , patience)
325
325
}
326
326
327
327
/// Take extra time to find minimal diff
328
328
pub fn minimal ( & mut self , minimal : bool ) -> & mut MergeFileOptions {
329
- self . flag ( raw:: GIT_MERGE_FILE_DIFF_MINIMAL as u32 , minimal)
329
+ self . flag ( raw:: GIT_MERGE_FILE_DIFF_MINIMAL , minimal)
330
330
}
331
331
332
332
/// Create zdiff3 ("zealous diff3")-style files
333
333
pub fn style_zdiff3 ( & mut self , zdiff3 : bool ) -> & mut MergeFileOptions {
334
- self . flag ( raw:: GIT_MERGE_FILE_STYLE_ZDIFF3 as u32 , zdiff3)
334
+ self . flag ( raw:: GIT_MERGE_FILE_STYLE_ZDIFF3 , zdiff3)
335
335
}
336
336
337
337
/// Do not produce file conflicts when common regions have changed
338
338
pub fn accept_conflicts ( & mut self , accept : bool ) -> & mut MergeFileOptions {
339
- self . flag ( raw:: GIT_MERGE_FILE_ACCEPT_CONFLICTS as u32 , accept)
339
+ self . flag ( raw:: GIT_MERGE_FILE_ACCEPT_CONFLICTS , accept)
340
340
}
341
341
342
342
/// The size of conflict markers (eg, "<<<<<<<"). Default is 7.
0 commit comments