Enum up_rs::tasks::git::errors::GitError[][src]

pub enum GitError {
    GitUpdate {
        path: PathBuf,
    },
    CreateDirError {
        path: PathBuf,
        source: Error,
    },
    NoRemotes,
    InvalidBranchError,
    BranchError {
        source: Error,
    },
    NoHeadSet,
    RemoteNameMissing,
    UncommittedChanges {
        status: String,
    },
    FetchFailed {
        remote: String,
        source: Error,
        extra_info: String,
    },
    NoOidFound {
        branch_name: String,
    },
    NoCommitFound {
        oid: String,
        source: Error,
    },
    Merge {
        branch: String,
        merge_ref: String,
        merge_rev: String,
    },
    CannotFastForwardMerge {
        analysis: MergeAnalysis,
        preference: MergePreference,
    },
    NoGitDirFound,
}

Errors thrown by the Git task.

Variants

GitUpdate

Failed to update git repo at ‘{path}’.

Fields of GitUpdate

path: PathBuf
CreateDirError

Failed to create directory ‘{path}’

Fields of CreateDirError

path: PathBufsource: Error
NoRemotes

Must specify at least one remote.

InvalidBranchError

Current branch is not valid UTF-8

BranchError

Branch list error

Fields of BranchError

source: Error
NoHeadSet

No default head branch set, and couldn’t calculate one.

RemoteNameMissing

Remote name unset.

UncommittedChanges

Repo has uncommitted changes, refusing to update. Status: * {status}

Fields of UncommittedChanges

status: String
FetchFailed

Fetch failed for remote ‘{remote}’.{extra_info}

Fields of FetchFailed

remote: Stringsource: Errorextra_info: String
NoOidFound

Couldn’t find oid for branch ‘{branch_name}’.

Fields of NoOidFound

branch_name: String
NoCommitFound

Couldn’t convert oid ‘{oid}’ into a commit.

Fields of NoCommitFound

oid: Stringsource: Error
Merge

Failed to merge {merge_rev} ({merge_ref}) into {branch}.

Fields of Merge

branch: Stringmerge_ref: Stringmerge_rev: String
CannotFastForwardMerge

Fast-forward merge failed. Analysis: {analysis:?}

Fields of CannotFastForwardMerge

analysis: MergeAnalysispreference: MergePreference
NoGitDirFound

Failed to find current git directory.

Trait Implementations

impl Debug for GitError[src]

impl Display for GitError[src]

impl Error for GitError[src]

Auto Trait Implementations

impl !RefUnwindSafe for GitError

impl Send for GitError

impl Sync for GitError

impl Unpin for GitError

impl !UnwindSafe for GitError

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.