[][src]Struct git_trim::TrimPlan

pub struct TrimPlan {
    pub skipped: HashMap<String, SkipSuggestion>,
    pub to_delete: HashSet<ClassifiedBranch>,
    pub preserved: Vec<Preserved>,
}

Fields

skipped: HashMap<String, SkipSuggestion>to_delete: HashSet<ClassifiedBranch>preserved: Vec<Preserved>

Implementations

impl TrimPlan[src]

impl TrimPlan[src]

pub fn preserve_protected(
    &mut self,
    repo: &Repository,
    preserved_patterns: &[&str]
) -> Result<()>
[src]

pub fn preserve_non_heads_remotes(&mut self, repo: &Repository) -> Result<()>[src]

hub-cli can checkout pull request branch. However they are stored in refs/pulls/. This prevents to remove them.

pub fn preserve_worktree(&mut self, repo: &Repository) -> Result<()>[src]

pub fn apply_delete_range_filter(
    &mut self,
    repo: &Repository,
    filter: &DeleteFilter
) -> Result<()>
[src]

pub fn adjust_not_to_detach(&mut self, repo: &Repository) -> Result<()>[src]

pub fn get_preserved_local(&self, target: &LocalBranch) -> Option<&Preserved>[src]

pub fn get_preserved_upstream(
    &self,
    target: &RemoteTrackingBranch
) -> Option<&Preserved>
[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,