pub struct DiffRequest {
pub staged: bool,
pub unstaged: bool,
pub against: Option<String>,
pub positionals: Vec<String>,
pub paths: Vec<String>,
pub pathspec_file: Option<Vec<String>>,
}Expand description
Unparsed grit diff flags and operands, as the user typed them.
resolve_diff_request turns this into a DiffArguments.
Fields§
§staged: boolCompare the index with HEAD (--staged).
unstaged: boolCompare the working tree with the index (--unstaged).
against: Option<String>Compare the working tree with this revision instead of HEAD (--against).
positionals: Vec<String>Operands before --: revisions, ranges, or paths given without --.
paths: Vec<String>Paths after --.
pathspec_file: Option<Vec<String>>Pathspecs read from a file (--pathspec-from-file), placed before the path operands.
Some means a file was supplied, even when it held no entries: the combined pathspec
list must then be non-empty.
Trait Implementations§
Source§impl Clone for DiffRequest
impl Clone for DiffRequest
Source§impl Debug for DiffRequest
impl Debug for DiffRequest
Source§impl Default for DiffRequest
impl Default for DiffRequest
impl Eq for DiffRequest
Source§impl PartialEq for DiffRequest
impl PartialEq for DiffRequest
impl StructuralPartialEq for DiffRequest
Auto Trait Implementations§
impl Freeze for DiffRequest
impl RefUnwindSafe for DiffRequest
impl Send for DiffRequest
impl Sync for DiffRequest
impl Unpin for DiffRequest
impl UnsafeUnpin for DiffRequest
impl UnwindSafe for DiffRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.