pub struct UpdateIndexPath {
pub path: PathBuf,
pub chmod: Option<bool>,
}Expand description
A single positional path passed to update-index, together with the
--chmod state that was active at the point the path was seen on the
command line. git applies --chmod=(+|-)x as a stateful flag that affects
every subsequent path until overridden, so --chmod=+x A --chmod=-x B
flips A executable and B non-executable. Each path also reports its action
(add '<p>', remove '<p>', chmod (+|-)x '<p>') inline under --verbose,
interleaved in command-line order — which is why the chmod state must travel
with the path rather than as a single batch-wide flag.
Fields§
§path: PathBuf§chmod: Option<bool>Trait Implementations§
Source§impl Clone for UpdateIndexPath
impl Clone for UpdateIndexPath
Source§fn clone(&self) -> UpdateIndexPath
fn clone(&self) -> UpdateIndexPath
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 moreAuto Trait Implementations§
impl Freeze for UpdateIndexPath
impl RefUnwindSafe for UpdateIndexPath
impl Send for UpdateIndexPath
impl Sync for UpdateIndexPath
impl Unpin for UpdateIndexPath
impl UnsafeUnpin for UpdateIndexPath
impl UnwindSafe for UpdateIndexPath
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