pub struct FileAttrs {Show 17 fields
pub text: TextAttr,
pub eol: EolAttr,
pub diff_attr: DiffAttr,
pub export_ignore: bool,
pub export_subst: bool,
pub filter_clean: Option<String>,
pub filter_smudge: Option<String>,
pub filter_process: Option<String>,
pub filter_driver_name: Option<String>,
pub filter_smudge_required: bool,
pub filter_clean_required: bool,
pub ident: bool,
pub merge: MergeAttr,
pub conflict_marker_size: Option<String>,
pub working_tree_encoding: Option<String>,
pub crlf_legacy: CrlfLegacyAttr,
pub whitespace: Option<String>,
}Expand description
Per-file attributes relevant to conversion.
Fields§
§text: TextAttr§eol: EolAttr§diff_attr: DiffAttrEffect of the diff gitattribute on diff output.
export_ignore: boolexport-ignore — omit from git archive.
export_subst: boolexport-subst — expand $Format: placeholders using the archived commit.
filter_clean: Option<String>§filter_smudge: Option<String>§filter_process: Option<String>filter.<name>.process — long-running filter (takes precedence over clean/smudge commands).
filter_driver_name: Option<String>Driver name from the active filter=<name> gitattribute (for error messages).
filter_smudge_required: boolWhether filter.<name>.required is set for this path’s filter driver.
filter_clean_required: boolSame config key as smudge; clean direction fails when unset if true.
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.
whitespace: Option<String>whitespace attribute value: None if unset, Some("set") for bare whitespace,
Some("unset") for -whitespace, or Some("trailing,...") for whitespace=....