chore: restore forced LF for patch files with exception (#46185)

chore: restore forced LF for patch files and add exception

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Pedro Pontes <pepontes@microsoft.com>
This commit is contained in:
trop[bot]
2025-03-22 11:11:49 -05:00
committed by GitHub
parent d36df82a9e
commit e3b7531eae

4
.gitattributes vendored
View File

@@ -1,10 +1,14 @@
# `git apply` and friends don't understand CRLF, even on windows. Force those
# files to be checked out with LF endings even if core.autocrlf is true.
*.patch text eol=lf
DEPS text eol=lf
yarn.lock text eol=lf
script/zip_manifests/*.manifest text eol=lf
patches/**/.patches merge=union
# Patch file line ending exceptions (patches that affect CRLF files)
reland_lzma_sdk_update_to_24_09.patch -text
# Source code and markdown files should always use LF as line ending.
*.c text eol=lf
*.cc text eol=lf