Commit 53917de787b for woocommerce

commit 53917de787bc681dda96d8697fd8d33a3f629abe
Author: ahmedevsaad <105542236+ahmedevsaad@users.noreply.github.com>
Date:   Thu Sep 17 10:05:48 2026 +0300

    Force LF line endings for shell scripts, patches and .mjs/.cjs/.yaml (#68565)

    `.gitattributes` sets `* text=auto` and forces `eol=lf` for 11 extensions,
    but not for several types the build tooling executes or parses. On Windows
    those fall back to `core.eol` (CRLF) and break the build: `git apply`
    rejects the `internal-build` type-override patches, and shell scripts
    invoked as `sh ./script.sh` fail on the shebang line.

    Add the missing extensions alongside the existing rules.

    Closes #68564

    Co-authored-by: Luigi Teschio <gigitux@gmail.com>

diff --git a/.gitattributes b/.gitattributes
index be05c3758f5..976434f197f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -4,6 +4,7 @@
 *.md    text    eol=lf
 *.json  text    eol=lf
 *.yml   text    eol=lf
+*.yaml  text    eol=lf

 # Force LF In Code Files
 *.php   text    eol=lf
@@ -11,6 +12,13 @@
 *.jsx   text    eol=lf
 *.ts    text    eol=lf
 *.tsx   text    eol=lf
+*.mjs   text    eol=lf
+*.cjs   text    eol=lf
 *.css   text    eol=lf
 *.scss  text    eol=lf
 *.flf   text    eol=lf
+
+# Force LF In Files Executed Or Parsed By Build Tooling
+# Shell scripts fail with CRLF, and `git apply` rejects patches with CRLF hunks.
+*.sh    text    eol=lf
+*.patch text    eol=lf