From 8c813277a9709f799965550bc1684e138ba5b6e5 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Sun, 23 Aug 2020 11:37:58 +0200 Subject: [PATCH] LF line endings on checkout for PHP files --- .gitattributes | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.gitattributes b/.gitattributes index 1c7bad9837e..782ca411dd7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,13 +1,20 @@ -/.* export-ignore -bin export-ignore +# Set the default behavior, in case people don't have `core.autocrlf` set. +* text=auto + +# Declare files that will always have LF line endings on checkout. +*.php text eol=lf + +# Remove files for archives generated using `git archive`. +/.* export-ignore +bin export-ignore CODE_OF_CONDUCT.md export-ignore -changelog.txt export-ignore -composer.* export-ignore -Gruntfile.js export-ignore -package.json export-ignore -package-lock.json export-ignore -phpcs.xml export-ignore -phpunit.* export-ignore -README.md export-ignore -tests export-ignore -renovate.json export-ignore +changelog.txt export-ignore +composer.* export-ignore +Gruntfile.js export-ignore +package.json export-ignore +package-lock.json export-ignore +phpcs.xml export-ignore +phpunit.* export-ignore +README.md export-ignore +renovate.json export-ignore +tests export-ignore