pub fn converts(values: &HashMap<String, Value>, endings: LineEndings) -> boolExpand description
Whether checking this path out would write something other than the blob’s own bytes.
A conversion breaks the rule the clone plan rests on. The index stat cache says the
working-tree file is clean, which means the file run back through the clean filter
equals the blob — it does not mean the file equals what a checkout would write. The two
part company whenever the conversion is not reversible: a file with LF endings under
eol=crlf is clean and yet a checkout would write CRLF, which git itself warns about
as “LF will be replaced by CRLF the next time Git touches it”. Such a path is left to
git, which writes the converted form.