Mesa (main): ensure csv-files are crlf on disk

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jan 16 09:04:44 UTC 2022


Module: Mesa
Branch: main
Commit: 493f68833128959539a6e202a6cfb18ab76bcf12
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=493f68833128959539a6e202a6cfb18ab76bcf12

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Tue Aug 17 12:50:13 2021 +0200

ensure csv-files are crlf on disk

According to RFC 4189 CSV files should be encoded using CRLF newlines,
not LF. This helps compatibility with tools, like python's csv module,
who always uses CRLF.

While we're at it, normalize the one CSV that was CRLF in-repo to LF,
and let git do the newline-normalization when needed instead.

Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12405>

---

 .gitattributes                 |  1 +
 .gitlab-ci/test-source-dep.yml |  2 ++
 docs/release-calendar.csv      | 14 +++++++-------
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000000..2d4b6ac4442
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.csv eol=crlf
diff --git a/.gitlab-ci/test-source-dep.yml b/.gitlab-ci/test-source-dep.yml
index f568f0c38d8..788d46b1824 100644
--- a/.gitlab-ci/test-source-dep.yml
+++ b/.gitlab-ci/test-source-dep.yml
@@ -18,6 +18,7 @@
       - .gitlab-ci/**/*
       - include/**/*
       - meson.build
+      - .gitattributes
       - src/*
       - src/compiler/**/*
       - src/drm-shim/**/*
@@ -126,6 +127,7 @@
       - .gitlab-ci.yml
       - .gitlab-ci/**/*
       - meson.build
+      - .gitattributes
       - include/**/*
       - src/compiler/**/*
       - src/include/**/*
diff --git a/docs/release-calendar.csv b/docs/release-calendar.csv
index d25c2a512f7..a209ea8b11d 100644
--- a/docs/release-calendar.csv
+++ b/docs/release-calendar.csv
@@ -1,7 +1,7 @@
-21.3,2022-01-26,21.3.5,Eric Engestrom,
-,2022-02-09,21.3.6,Eric Engestrom,
-,2022-02-23,21.3.7,Eric Engestrom,Last planned 21.3.x release.
-22.0,2022-02-02,22.0.0-rc1,Dylan Baker
-,2022-02-09,22.0.0-rc2,Dylan Baker
-,2022-02-16,22.0.0-rc3,Dylan Baker
-,2022-02-22,22.0.0-rc4,Dylan Baker,Or 22.0.0 final.
+21.3,2022-01-26,21.3.5,Eric Engestrom,
+,2022-02-09,21.3.6,Eric Engestrom,
+,2022-02-23,21.3.7,Eric Engestrom,Last planned 21.3.x release.
+22.0,2022-02-02,22.0.0-rc1,Dylan Baker
+,2022-02-09,22.0.0-rc2,Dylan Baker
+,2022-02-16,22.0.0-rc3,Dylan Baker
+,2022-02-22,22.0.0-rc4,Dylan Baker,Or 22.0.0 final.



More information about the mesa-commit mailing list