[][src]Enum git2::RebaseOperationType

pub enum RebaseOperationType {
    Pick,
    Reword,
    Edit,
    Squash,
    Fixup,
    Exec,
}

A rebase operation

Describes a single instruction/operation to be performed during the rebase.

Variants

Pick

The given commit is to be cherry-picked. The client should commit the changes and continue if there are no conflicts.

Reword

The given commit is to be cherry-picked, but the client should prompt the user to provide an updated commit message.

Edit

The given commit is to be cherry-picked, but the client should stop to allow the user to edit the changes before committing them.

Squash

The given commit is to be squashed into the previous commit. The commit message will be merged with the previous message.

Fixup

The given commit is to be squashed into the previous commit. The commit message from this commit will be discarded.

Exec

No commit will be cherry-picked. The client should run the given command and (if successful) continue.

Methods

impl RebaseOperationType
[src]

pub fn from_raw(raw: git_rebase_operation_t) -> Option<RebaseOperationType>
[src]

Convert from the int into an enum. Returns None if invalid.

Trait Implementations

impl PartialEq<RebaseOperationType> for RebaseOperationType
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Debug for RebaseOperationType
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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