xtask: ui-commands --check passes in a checkout with core.autocrlf

cargo xtask ui-commands --check compares crates/mcp/src/ui_catalog.rs
byte for byte with the rustfmt output the generator produces, which has
LF line endings. With core.autocrlf=true, the Git for Windows default,
git checked the file out with CRLF line endings, so the check and cargo
xtask ci failed on an unchanged tree. The root .gitattributes now marks
the file -text, as it does the DXF writer goldens, so git checks it out
with the LF bytes stored in the index.
This commit is contained in:
dotCooCoo committed 2026-12-03 07:10:28 -08:00
1 parent ce619b982d
commit e32a12ebeb
1 file changed
+2
+2
View File
@@ -1,2 +1,4 @@
# The DXF writer goldens are compared byte for byte with the writer's output (LF line endings).
crates/cad/tests/data/*.dxf -text
# `cargo xtask ui-commands --check` compares this file byte for byte with rustfmt's output (LF line endings).
crates/mcp/src/ui_catalog.rs -text