From 97010f541171cc51fca1f55372535e247ca87b15 Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Sat, 16 Oct 2021 08:45:14 +1100 Subject: [PATCH] Add a .gitattributes file (#929) Automatically convert EOL to line feed to make Windows development of codelabs easier. Inspiration from https://github.com/flutter/flutter/blob/master/.gitattributes --- .gitattributes | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..dedd30c6b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,39 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Always perform LF normalization on these files +*.c text +*.cc text +*.cmake text +*.dart text +*.gradle text +*.h text +*.html text +*.java text +*.json text +*.md text +*.py text +*.sh text +*.swift text +*.txt text +*.xml text +*.yaml text + +# Make sure that these Windows files always have CRLF line endings in checkout +*.bat text eol=crlf +*.ps1 text eol=crlf +*.rc text eol=crlf +*.sln text eol=crlf +*.props text eol=crlf +*.vcxproj text eol=crlf +*.vcxproj.filters text eol=crlf +# Including templatized versions. +*.sln.tmpl text eol=crlf +*.props.tmpl text eol=crlf +*.vcxproj.tmpl text eol=crlf + +# Never perform LF normalization on these files +*.ico binary +*.jar binary +*.png binary +*.zip binary \ No newline at end of file