Struct git2::MergeOptions[][src]

pub struct MergeOptions { /* fields omitted */ }
Expand description

Options to specify when merging.

Implementations

Creates a default set of merge options.

Detect file renames

If a conflict occurs, exit immediately instead of attempting to continue resolving conflicts

Do not write the REUC extension on the generated index

If the commits being merged have multiple merge bases, do not build a recursive merge base (by merging the multiple merge bases), instead simply use the first base.

Similarity to consider a file renamed (default 50)

Maximum similarity sources to examine for renames (default 200). If the number of rename candidates (add / delete pairs) is greater than this value, inexact rename detection is aborted. This setting overrides the merge.renameLimit configuration value.

Maximum number of times to merge common ancestors to build a virtual merge base when faced with criss-cross merges. When this limit is reached, the next ancestor will simply be used instead of attempting to merge it. The default is unlimited.

Specify a side to favor for resolving conflicts

Create standard conflicted merge files

Create diff3-style file

Condense non-alphanumeric regions for simplified diff file

Ignore all whitespace

Ignore changes in amount of whitespace

Ignore whitespace at end of line

Use the “patience diff” algorithm

Take extra time to find minimal diff

Acquire a pointer to the underlying raw options.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.