Enum git2::ResetType [] [src]

pub enum ResetType {
    Soft,
    Mixed,
    Hard,
}

An enumeration of the operations that can be performed for the reset method on a Repository.

Variants

Soft

Move the head to the given commit.

Mixed

Soft plus reset the index to the commit.

Hard

Mixed plus changes in the working tree are discarded.

Trait Implementations

Derived Implementations

impl Clone for ResetType

fn clone(&self) -> ResetType

fn clone_from(&mut self, source: &Self)

impl Copy for ResetType