[][src]Struct git_trim::args::Args

pub struct Args {
    pub bases: Vec<String>,
    pub protected: Vec<String>,
    pub no_update: bool,
    pub update: bool,
    pub update_interval: Option<u64>,
    pub no_confirm: bool,
    pub confirm: bool,
    pub no_detach: bool,
    pub detach: bool,
    pub delete: Vec<DeleteFilter>,
    pub dry_run: bool,
}

Fields

bases: Vec<String>

Comma separated multiple names of branches. All the other branches are compared with the upstream branches of those branches. [default: master] [config: trim.base]

protected: Vec<String>

Comma separated multiple glob patterns (e.g. release-*, feature/*) of branches that should never be deleted. [default: ] [config: trim.protected]

no_update: bool

Do not update remotes [config: trim.update]

update: boolupdate_interval: Option<u64>

Prevents too frequent updates. Seconds between updates in seconds. 0 to disable. [default: 3] [config: trim.update_interval]

no_confirm: bool

Do not ask confirm [config: trim.confirm]

confirm: boolno_detach: bool

Do not detach when HEAD is about to be deleted [config: trim.detach]

detach: booldelete: Vec<DeleteFilter>

Comma separated values of <filter unit>[:<remote name>]. Filter unit is one of the all, merged, gone, local, remote, merged-local, merged-remote, stray-local, stray-remote. You can scope a filter unit to specific remote :<remote name> to a filter unit when the filter unit implies merged-remote or stray-remote. [default : merged:origin] [config: trim.filter]

If there are filter units that are scoped, it trims remote branches only in the specified remote. If there are any filter unit that isn`t scoped, it trims all remote branches.

all implies merged-local,merged-remote,stray-local,stray-remote. merged implies merged-local,merged-remote. stray implies stray-local,stray-remote. local implies merged-local,stray-local. remote implies merged-remote,stray-remote.

dry_run: bool

Do not delete branches, show what branches will be deleted.

Methods

impl Args[src]

pub fn update(&self) -> Option<bool>[src]

pub fn confirm(&self) -> Option<bool>[src]

pub fn detach(&self) -> Option<bool>[src]

Trait Implementations

impl ParseArgs for Args[src]

type Error = Error

Error type. Read more

impl StructOpt for Args[src]

impl StructOptInternal for Args[src]

Auto Trait Implementations

impl RefUnwindSafe for Args

impl Send for Args

impl Sync for Args

impl Unpin for Args

impl UnwindSafe for Args

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>,