pub enum EolConversion {
Off,
On(Culprit),
}Expand description
Whether git would run its own end-of-line conversion over stored bytes.
The distinction this type exists for is measured, not reasoned: git’s
convert_attrs maps the text attribute onto a crlf_action, and only the
CRLF_AUTO* actions consult binary detection. Our magic starts with a NUL
byte, so every action that does consult it leaves the ciphertext alone; the
ones that do not convert it unconditionally, and a converted ciphertext fails
its authentication tag forever.
Variants§
Trait Implementations§
Source§impl Clone for EolConversion
impl Clone for EolConversion
Source§fn clone(&self) -> EolConversion
fn clone(&self) -> EolConversion
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 moreSource§impl Debug for EolConversion
impl Debug for EolConversion
impl Eq for EolConversion
Source§impl PartialEq for EolConversion
impl PartialEq for EolConversion
impl StructuralPartialEq for EolConversion
Auto Trait Implementations§
impl Freeze for EolConversion
impl RefUnwindSafe for EolConversion
impl Send for EolConversion
impl Sync for EolConversion
impl Unpin for EolConversion
impl UnsafeUnpin for EolConversion
impl UnwindSafe for EolConversion
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