pub struct FileAttrs {
pub text: TextAttr,
pub eol: EolAttr,
pub diff_driver: Option<String>,
pub filter_clean: Option<String>,
pub filter_smudge: Option<String>,
pub filter_smudge_required: bool,
pub ident: bool,
pub merge: MergeAttr,
pub conflict_marker_size: Option<String>,
pub working_tree_encoding: Option<String>,
pub crlf_legacy: CrlfLegacyAttr,
}Expand description
Per-file attributes relevant to conversion.
Fields§
§text: TextAttr§eol: EolAttr§diff_driver: Option<String>Diff driver name from diff=<driver> attribute.
filter_clean: Option<String>§filter_smudge: Option<String>§filter_smudge_required: boolWhether filter.<name>.required is set for the active smudge filter.
ident: bool§merge: MergeAttr§conflict_marker_size: Option<String>§working_tree_encoding: Option<String>Working tree encoding (e.g. “utf-16”) — content is converted to UTF-8 on add.
crlf_legacy: CrlfLegacyAttrLegacy crlf / -crlf / crlf=input from .gitattributes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileAttrs
impl RefUnwindSafe for FileAttrs
impl Send for FileAttrs
impl Sync for FileAttrs
impl Unpin for FileAttrs
impl UnsafeUnpin for FileAttrs
impl UnwindSafe for FileAttrs
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