From c53ccb37ae02b1f4b8e5b29fdd4e46e488a8a821 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Sun, 20 Sep 2015 01:32:35 +0200 Subject: [PATCH] Force `LF` eol with .gitattributes --- .gitattributes | 9 +++++++++ CHANGELOG.md | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..80772e4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# Force text files to have unix eols, so Windows/Cygwin does not break them +*.* eol=lf + +# These files are unfortunately not recognized as text files so +# explicitly listing them here +tpm eol=lf +bin/* eol=lf +bindings/* eol=lf +tests/* eol=lf diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f16917..b565e8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ - bug: when using `emacs` copy mode, Enter does not quit screen after tpm installation/update. Fix by making `Escape` the key for emacs mode. - add a doc with troubleshooting instructions +- add `.gitattributes` file that forces linefeed characters (classic `\n`) as + line endings - helps with misconfigured git on windows/cygwin ### v3.0.0, 2015-08-03 - refactor `shared_set_tpm_path_constant` function