[−][src]Struct git_trim::args::Args
Fields
bases: Vec<String>
Comma separated multiple names of branches.
All the other branches are compared with the upstream branches of those branches.
[default: branches that tracks git symbolic-ref refs/remotes/*/HEAD
] [config: trim.bases]
The default value is a branch that tracks git symbolic-ref refs/remotes/*/HEAD
.
They might not be reflected correctly when the HEAD branch of your remote repository is changed.
You can see the changed HEAD branch name with git remote show <remote>
and apply it to your local repository with git remote set-head <remote> --auto
.
protected: Vec<String>
Comma separated multiple glob patterns (e.g. release-*
, feature/*
) of branches that should never be deleted.
[config: trim.protected]
no_update: bool
Do not update remotes [config: trim.update]
update: bool
update_interval: Option<u64>
Prevents too frequent updates. Seconds between updates in seconds. 0 to disable. [default: 5] [config: trim.updateInterval]
no_confirm: bool
Do not ask confirm [config: trim.confirm]
confirm: bool
no_detach: bool
Do not detach when HEAD is about to be deleted [config: trim.detach]
detach: bool
delete: Vec<DeleteRange>
Comma separated values of <delete range>[:<remote name>]
.
Delete range is one of the merged, merged-local, merged-remote, stray, diverged, local, remote
.
:<remote name>
is only necessary to a <delete range>
when the range is applied to remote branches.
You can use *
as <remote name>
to delete a range of branches from all remotes.
[default : merged:origin
] [config: trim.delete]
merged
implies merged-local,merged-remote
.
merged-local
will delete merged tracking local branches.
merged-remote:<remote>
will delete merged upstream branches from <remote>
.
stray
will delete tracking local branches, which is not merged, but the upstream is gone.
diverged:<remote>
will delete merged tracking local branches, and their upstreams from <remote>
even if the upstreams are not merged and diverged from local ones.
local
will delete non-tracking merged local branches.
remote:<remote>
will delete non-upstream merged remote tracking branches.
Use with caution when you are using other than merged
. It might lose changes, and even nuke repositories.
dry_run: bool
Do not delete branches, show what branches will be deleted.
Implementations
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 Clap for Args
[src]
fn parse() -> Self
[src]
fn try_parse() -> Result<Self, Error>
[src]
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
[src]
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
[src]
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
impl Default for Args
[src]
impl FromArgMatches for Args
[src]
fn from_arg_matches(matches: &ArgMatches) -> Self
[src]
impl IntoApp for Args
[src]
impl ParseArgs for Args
[src]
type Error = Error
Error type.
fn parse_args() -> Result<Self, Self::Error>
[src]
Try to parse an input to a type.
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,