aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2022-11-20 18:43:19 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2022-11-20 18:43:19 +0300
commit80969817fa948bfff4cdfa53acc96e7ac390af69 (patch)
treee188094e582c35527145c4c531bf7f18ccfc4c37
parent147e53b63cb9f3e00c340bd32980eb2a51e972f0 (diff)
downloadsciteco-80969817fa948bfff4cdfa53acc96e7ac390af69.tar.gz
added .gitattributes to disable automatic EOL transformations by Git
* These caused problems on Windows where it would check out Groff *.tmac files with CRLF linefeeds, causing lots of bogus warnings in the CI build logs. * Who knows what kinds of problems this could cause with SciTECO macros (*.tes). * In general, there is no reason not to use exactly the linefeeds committed into the repository, so most files should be checked out with LF even on Windows. It may be necessary to use CRLF on Windows-only files, but even sciteco.rc currently works with Unix linebreaks.
-rw-r--r--.gitattributes4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..a800383
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,4 @@
+# Disable automatic line ending changes on checkout.
+# For instance on *.tmac files, this causes a lot of bogus warnings.
+# Instead use the exact same line endings committed into the repo.
+* -text