pub struct StatusOptions {
pub untracked: UntrackedMode,
pub ignored: IgnoredMode,
pub renames: Option<RenameDetection>,
pub pathspecs: Vec<String>,
pub ahead_behind: bool,
}Expand description
Inputs that drive what status computes.
The CLI translates clap arguments and config (status.showUntrackedFiles,
status.renames, status.aheadBehind, submodule ignore settings, …) into
this plain struct. Presentation choices — short vs. porcelain vs. long,
colour, column layout, path quoting, -z — are deliberately absent; they
belong to the renderer, not the computation.
Fields§
§untracked: UntrackedModeUntracked-file reporting mode.
ignored: IgnoredModeIgnored-file reporting mode.
renames: Option<RenameDetection>Rename/copy detection, or None to skip rename detection.
pathspecs: Vec<String>Limit the report to paths matching these pathspecs (empty = whole tree).
ahead_behind: boolCompute ahead/behind counts relative to the upstream branch.
Trait Implementations§
Source§impl Clone for StatusOptions
impl Clone for StatusOptions
Source§fn clone(&self) -> StatusOptions
fn clone(&self) -> StatusOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusOptions
impl Debug for StatusOptions
Auto Trait Implementations§
impl Freeze for StatusOptions
impl RefUnwindSafe for StatusOptions
impl Send for StatusOptions
impl Sync for StatusOptions
impl Unpin for StatusOptions
impl UnsafeUnpin for StatusOptions
impl UnwindSafe for StatusOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more