Skip to content

Commit

Permalink
global: add git attribute for easier file management
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Aug 30, 2024
1 parent 341d16c commit 60803a2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 60803a2

Please sign in to comment.