From 60803a26ef7ed8b55e1f05316e10716e8b3c8e3e Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 13 Nov 2023 11:15:38 +0100 Subject: [PATCH] global: add git attribute for easier file management --- .editorconfig | 17 +++++++++++++++++ .gitattributes | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..bb0828b7a3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# This file provide reference settings for the Pymavlink code conventions +# There are plug-ins available for nearly every text editor to automatically +# respect the conventions contained within this file. +# +# Please see editorconfig.org for complete information. +# +# If you find errors in this file, please send a pull-request with a fix. +# +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = false # These are the correct rules for coding standards, but fixing up old files causes git spam +insert_final_newline = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..9694e13a2f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +text eol=lf + +# Declare files that will always have LF line endings on checkout. +*.py text eol=lf +*.sh text eol=lf +*.bash text eol=lf + +*.bin -diff + +*.bin binary linguist-generated