Browse Source

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

chore: restore forced LF for patch files and add exception
Pedro Pontes 4 weeks ago
parent
commit
88f4deb3a3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .gitattributes

+ 4 - 0
.gitattributes

@@ -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