* Added .gitattributes, with every file extension found in the repo.
* Add context aware diff support to C/C++/HTML/Python, and:
  * Mark frag as C++.
  * Mark i as Python.
* Mark patch files to be ignored during normalization, because some
  of the patches in patches/* have mixed line endings.
* Mark svg files to always use lf as EOL on all platforms.

Signed-off-by: Niki Guldbrand <niki.guldbr...@gmail.com>
---
 .gitattributes | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 .gitattributes

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..1de467c
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,59 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+
+# Explicitly declare text files you want to always be normalized and converted
+# to native line endings on checkout.
+*.awk text
+*.bat text eol=crlf
+*.c text diff=cpp
+*.cc text diff=cpp
+*.cfg text
+*.cir text
+*.cmake text
+*.cmp text
+*.conf text
+*.cpp text diff=cpp
+*.dcm text
+*.desktop text
+*.dxf text
+*.emn text
+*.emp text
+*.fbp text
+*.fnt text
+*.fodt text
+*.frag text diff=cpp
+*.gbr text
+*.h text diff=cpp
+*.hpp text diff=cpp
+*.html text diff=html
+*.i text diff=python
+*.json text
+*.keywords text
+*.kicad_pcb text
+*.kicad_wks text
+*.lib text
+*.md text
+*.mod text
+*.net text
+*.patch -text
+*.plist text
+*.pro text
+*.py text diff=python
+*.rc text diff=cpp
+*.sch text
+*.sh text
+*.svg text eol=lf
+*.txt text
+*.vert text
+*.xml text
+*.xpm text
+*.xsl text
+
+# Denote all files that are truly binary and should not be modified.
+*.bmp binary
+*.icns binary
+*.ico binary
+*.jpg binary
+*.odt binary
+*.pdf binary
+*.png binary
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to