[][src]Enum git_workarea::Conflict

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

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.

Methods

impl Conflict[src]

pub fn path(&self) -> &Path[src]

The path to the blob that for the conflict.

Trait Implementations

impl PartialEq<Conflict> for Conflict[src]

impl Debug for Conflict[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]