🐛 Check out every file with its committed bytes, whatever autocrlf says
Git for Windows' installer sets core.autocrlf=true, and with no attributes a clone it makes holds every text file with CRLF line ends. A user's install of the development channel on Windows then stopped in cargo xtask dist: reims-vgpu-vulkan's build script hashes the .metal sources, and found the committed metallibs built from other bytes. The prebuilt records of the option ROM and the guest's kexts, cargo xtask header --check and the Info.plist files reims-ctl embeds read files byte for byte too. text=auto eol=lf keeps LF in every checkout and normalises what is committed; the committed metallibs, ROM, kext executables, xz answers and PNGs are binary by name, so no first-bytes guess decides them. No committed file changes: all 1730 text files are LF in the index, and the 95 binaries are the ones named.
This commit is contained in:
1 parent
bff80707cb
commit
5fdd3c05f1
1 file changed
+15
@@ -0,0 +1,15 @@
|
||||
# Every checkout holds each file's committed bytes, whatever core.autocrlf says. Git for Windows'
|
||||
# installer sets core.autocrlf=true, which writes text files out with CRLF line ends where no
|
||||
# attribute says otherwise, and the build and its checks read some of them byte for byte:
|
||||
# reims-vgpu-vulkan's build script hashes the .metal sources for metallibs/metallibs.toml, the
|
||||
# option ROM's and the guest's prebuilt records hash the files they were built from, `cargo xtask
|
||||
# header --check` compares the C header with cbindgen's, and reims-ctl embeds the guest's
|
||||
# Info.plist files. Text is committed with LF line ends, and checked out with them.
|
||||
* text=auto eol=lf
|
||||
|
||||
# The committed build outputs and data, which are not text whatever their first bytes look like.
|
||||
*.metallib binary
|
||||
*.rom binary
|
||||
*.xz binary
|
||||
*.png binary
|
||||
guest/**/Contents/MacOS/* binary
|
||||
Reference in new issue
Block a user