[][src]Enum git_checks_core::CommitError

pub enum CommitError {
    Git {
        source: GitError,
    },
    FileName {
        source: FileNameError,
    },
    CommitMetadata {
        ref_: CommitId,
        output: String,
    },
    CommitMetadataOutput {
        output: String,
    },
    CommitMessage {
        ref_: CommitId,
        output: String,
    },
    RevList {
        base_rev: CommitId,
        merge_base: Option<CommitId>,
        output: String,
    },
    AncestorCheck {
        best_rev: CommitId,
        merge_base: CommitId,
        output: String,
    },
    MergeBase {
        base: CommitId,
        head: CommitId,
        output: String,
    },
    DiffTree {
        commit: CommitId,
        base: Option<CommitId>,
        output: String,
    },
    DiffPatch {
        commit: CommitId,
        base: Option<CommitId>,
        output: String,
    },
    // some variants omitted
}

Errors which can occur when working with a commit for a check.

Variants

Git

Command preparation failure.

Fields of Git

source: GitError

The cause of the error.

FileName

File name parsing failure.

Fields of FileName

source: FileNameError

The cause of the error.

CommitMetadata

Failure to extract commit metadata.

Fields of CommitMetadata

ref_: CommitId

The commit that was being queried.

output: String

Git's output for the error.

CommitMetadataOutput

The commit metadata output did not match the expected format.

Fields of CommitMetadataOutput

output: String

Git's actual output.

CommitMessage

Failure to extract commit message.

Fields of CommitMessage

ref_: CommitId

The commit that was being queried.

output: String

Git's output for the error.

RevList

Failure to list revisions in a branch.

Fields of RevList

base_rev: CommitId

The commit being queried.

merge_base: Option<CommitId>

The merge base being tested.

output: String

Git's output for the error.

AncestorCheck

Failure to check the ancestory in a branch.

Fields of AncestorCheck

best_rev: CommitId

The commit being queried.

merge_base: CommitId

The merge base being tested.

output: String

Git's output for the error.

MergeBase

Failure to determine the merge base between two commits.

Fields of MergeBase

base: CommitId

The base commit.

head: CommitId

The head of the topic.

output: String

Git's output for the error.

DiffTree

Failure to tree diff of a commit.

Fields of DiffTree

commit: CommitId

The commit being queried.

base: Option<CommitId>

The "old" commit of the branch (the parent of the commit if not set).

output: String

Git's output for the error.

DiffPatch

Failure to get the patch of a commit.

Fields of DiffPatch

commit: CommitId

The commit being queried.

base: Option<CommitId>

The "old" commit of the branch (the parent of the commit if not set).

output: String

Git's output for the error.

Trait Implementations

impl From<GitError> for CommitError[src]

impl From<FileNameError> for CommitError[src]

impl From<CommitError> for RunError[src]

impl Display for CommitError[src]

impl Debug for CommitError[src]

impl Error for CommitError[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> ToString for T where
    T: Display + ?Sized
[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]