Browse Source

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 <[email protected]>
trop[bot] 4 weeks ago
parent
commit
e3b7531eae
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