From 6ead6aa8470000906327a12220539ac3acd23ab5 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 20 Aug 2024 15:07:51 -0700 Subject: [PATCH] Update gitattributes to force LF (#6386) * Update gitattributes to force LF * other binary filetypes we host * add a comment * force \n on some files --- .gitattributes | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index 9c72b27ae..2edb62013 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,9 @@ -* -text -*.Rraw linguist-language=R - +* text eol=lf +*.ico -text +*.mo -text +*.png -text +*.RData -text +# Important for test CSV files, where we definitely +# want to preserve the line endings robustly +inst/tests/** -text +inst/tests/*.Rraw text eol=lf linguist-language=R