git: prevent CRLF line ending conversion for patches on Windows
authorTim-Philipp Müller <tim@centricular.com>
Thu, 30 Mar 2023 12:48:02 +0000 (13:48 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 31 Mar 2023 01:02:01 +0000 (02:02 +0100)
Otherwise the patch file might get line endings converted on git
checkout on Windows if the git option core.autocrlf=true is set,
and then the patches won't apply later when Meson tries to apply
them to the downloaded source code from tarball.

This could cause the pango patches not applying to the pango
subproject on Windows in some settings, and then the subproject
setup would fail and the pango plugin would not be built.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4314>

.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..e5c3266
--- /dev/null
@@ -0,0 +1 @@
+subprojects/packagefiles/*/*.patch  text eol=lf