pub struct UpdateIndexOptions {
pub add: bool,
pub remove: bool,
pub force_remove: bool,
pub chmod: Option<bool>,
pub info_only: bool,
pub ignore_skip_worktree_entries: bool,
pub allow_skip_worktree_entries: bool,
}Expand description
Batch-wide options for the git add-style callers that apply one uniform
mode to every path. The positional add/remove/force_remove/info_only/
chmod fields describe that uniform mode; ignore_skip_worktree_entries is
a genuine whole-invocation toggle (it is not positional in git either).
git update-index <flag> <path>... does NOT use this for its per-path mode —
it builds UpdateIndexPath values directly, each carrying the sticky mode
in effect when that path was parsed. See UpdateIndexPath.
Fields§
§add: bool§remove: bool§force_remove: bool§chmod: Option<bool>§info_only: bool§ignore_skip_worktree_entries: bool§allow_skip_worktree_entries: boolTrait Implementations§
Source§impl Clone for UpdateIndexOptions
impl Clone for UpdateIndexOptions
Source§fn clone(&self) -> UpdateIndexOptions
fn clone(&self) -> UpdateIndexOptions
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 moreimpl Copy for UpdateIndexOptions
Source§impl Debug for UpdateIndexOptions
impl Debug for UpdateIndexOptions
impl Eq for UpdateIndexOptions
Source§impl PartialEq for UpdateIndexOptions
impl PartialEq for UpdateIndexOptions
Source§fn eq(&self, other: &UpdateIndexOptions) -> bool
fn eq(&self, other: &UpdateIndexOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateIndexOptions
Auto Trait Implementations§
impl Freeze for UpdateIndexOptions
impl RefUnwindSafe for UpdateIndexOptions
impl Send for UpdateIndexOptions
impl Sync for UpdateIndexOptions
impl Unpin for UpdateIndexOptions
impl UnsafeUnpin for UpdateIndexOptions
impl UnwindSafe for UpdateIndexOptions
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