pub struct Resolution {
pub filter: FilterAttribute,
pub conversion: EolConversion,
pub eol: DeclaredEol,
}Expand description
What git resolves for one path, on both axes the managed section sets.
Fields§
§filter: FilterAttributeWhether git would run this tool for the path.
conversion: EolConversionWhether git would convert the path’s line endings itself.
eol: DeclaredEolThe eol= the path resolved to, which only the check-out side reads.
Implementations§
Source§impl Resolution
impl Resolution
Sourcepub fn expands_on_checkout(
&self,
autocrlf: Option<&str>,
core_eol: Option<&str>,
) -> Option<&Culprit>
pub fn expands_on_checkout( &self, autocrlf: Option<&str>, core_eol: Option<&str>, ) -> Option<&Culprit>
The line that makes git expand LF to CRLF on the way out of the
object database, if any.
Not the same question as Self::conversion, and the difference is
measured rather than reasoned. On git 2.55, with core.autocrlf=true and
a blob full of lone LF:
| line | check-in | check-out |
|---|---|---|
p text | strips CR | expands |
p text eol=lf | strips CR | untouched |
p text eol=crlf | strips CR | expands |
p eol=crlf | strips CR | expands |
p -text, binary | untouched | untouched |
p text=auto | untouched (the NUL) | untouched |
Reusing the check-in verdict here would claim the second row damages a checkout, which it does not — and on that row the bytes handed to the authentication tag really are the stored ones, so a failing tag means the file, not the configuration.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
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 Resolution
impl Debug for Resolution
impl Eq for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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