pub enum Conflict {
    Path(PathBuf),
    SubmoduleNotMerged(PathBuf),
    SubmoduleNotPresent(PathBuf),
    SubmoduleWithFix(PathBufCommitId),
}
Expand description

Representation of merge conflict possibilities.

Variants

Path(PathBuf)

A regular blob has conflicted.

SubmoduleNotMerged(PathBuf)

A submodule points to a commit not merged into the target branch.

SubmoduleNotPresent(PathBuf)

The submodule points to a commit not present in the main repository.

SubmoduleWithFix(PathBufCommitId)

The submodule conflicts, but a resolution is available.

This occurs when the submodule points to a commit not on the first-parent history of the target branch on both sides of the merge. The suggested commit is the oldest commit on the main branch which contains both branches.

Implementations

The path to the blob that for the conflict.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.