From 706d608bab4483bd0645330c26153128115145f9 Mon Sep 17 00:00:00 2001 From: waych Date: Fri, 2 Apr 2021 02:51:59 -0700 Subject: [PATCH] rust-sdl2: Force unix line-endings for patches (#1080) This fixes an issue where the *.patch files get windows line endings when checked out on windows, which breaks the bundled build when building from git directly. --- .gitattributes | 1 + changelog.md | 1 + 2 files changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..dbf3d256 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.patch eol=lf diff --git a/changelog.md b/changelog.md index 696a450f..ce4c9d20 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ when upgrading from a version of rust-sdl2 to another. * Add patch to fix metal detection (https://bugzilla.libsdl.org/show_bug.cgi?id=4988) * Changed signature of TimerSubsystem::ticks to accept `&self`. +[PR #1080](https://github.com/Rust-SDL2/rust-sdl2/pull/1080): Fix line endings of patches to lf so patching of sources works on Windows. ### v0.34.4