pub struct MoveHeadFlags {
pub force: bool,
}Expand description
Flags controlling a move-head check, porting SUBMODULE_MOVE_HEAD_*.
Note: only the verification (dry-run) decision is modeled here, which is all
check_submodule_move_head ever needs (it always sets DRY_RUN). The
non-dry-run mutation path of submodule_move_head (absorb gitdir, run
read-tree -u, update HEAD) is a CLI/engine concern and lives with the
caller — see TODO(submodule) below.
Fields§
§force: boolSUBMODULE_MOVE_HEAD_FORCE — set on a hard reset. When forced, a dirty
index does NOT block the move (git skips the dirty-index check).
Trait Implementations§
Source§impl Clone for MoveHeadFlags
impl Clone for MoveHeadFlags
Source§fn clone(&self) -> MoveHeadFlags
fn clone(&self) -> MoveHeadFlags
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 MoveHeadFlags
Source§impl Debug for MoveHeadFlags
impl Debug for MoveHeadFlags
Source§impl Default for MoveHeadFlags
impl Default for MoveHeadFlags
Source§fn default() -> MoveHeadFlags
fn default() -> MoveHeadFlags
Returns the “default value” for a type. Read more
impl Eq for MoveHeadFlags
Source§impl PartialEq for MoveHeadFlags
impl PartialEq for MoveHeadFlags
Source§fn eq(&self, other: &MoveHeadFlags) -> bool
fn eq(&self, other: &MoveHeadFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MoveHeadFlags
Auto Trait Implementations§
impl Freeze for MoveHeadFlags
impl RefUnwindSafe for MoveHeadFlags
impl Send for MoveHeadFlags
impl Sync for MoveHeadFlags
impl Unpin for MoveHeadFlags
impl UnsafeUnpin for MoveHeadFlags
impl UnwindSafe for MoveHeadFlags
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