pub struct ProtectOptions {
pub protect_ntfs: bool,
pub protect_hfs: bool,
}Expand description
Whether NTFS and HFS+ spelling protections apply (from core.protectNTFS / core.protectHFS).
Fields§
§protect_ntfs: boolReject NTFS .git spellings, short names, \\ segments, and : streams.
protect_hfs: boolReject HFS+ Unicode-ignorable .git spellings.
Implementations§
Source§impl ProtectOptions
impl ProtectOptions
Sourcepub fn from_config(config: &ConfigSet) -> Self
pub fn from_config(config: &ConfigSet) -> Self
Load protection flags from a merged ConfigSet (no environment reads).
Defaults match Git: core.protectNTFS true; core.protectHFS true on macOS, false elsewhere.
Trait Implementations§
Source§impl Clone for ProtectOptions
impl Clone for ProtectOptions
impl Copy for ProtectOptions
Source§impl Debug for ProtectOptions
impl Debug for ProtectOptions
Source§impl Default for ProtectOptions
impl Default for ProtectOptions
impl Eq for ProtectOptions
Source§impl Hash for ProtectOptions
impl Hash for ProtectOptions
Source§impl PartialEq for ProtectOptions
impl PartialEq for ProtectOptions
impl StructuralPartialEq for ProtectOptions
Auto Trait Implementations§
impl Freeze for ProtectOptions
impl RefUnwindSafe for ProtectOptions
impl Send for ProtectOptions
impl Sync for ProtectOptions
impl Unpin for ProtectOptions
impl UnsafeUnpin for ProtectOptions
impl UnwindSafe for ProtectOptions
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.