Skip to content

Commit aa2ad44

Browse files
authored
Update gitattributes as per PR discussion
via #285
1 parent ea4b72f commit aa2ad44

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.gitattributes

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,29 @@
1212
# in your working directory. In either case, they will have LF line endings in
1313
# the Git repository itself.
1414

15+
# Set the default behavior, in case people don't have core.autocrlf set.
1516
* text=auto
1617

1718
# Explicitly declare text files you want to always be normalized and converted
1819
# to native line endings on checkout. Git would likely get these right, but
1920
# we can be sure by adding them here.
20-
*.c text
21-
*.cpp text
22-
*.h text
23-
*.md text
24-
*.yaml text
25-
*.yml text
21+
*.ino text diff=cpp
22+
*.c text diff=c
23+
*.cc text diff=cpp
24+
*.cxx text diff=cpp
25+
*.cpp text diff=cpp
26+
*.c++ text diff=cpp
27+
*.hpp text diff=cpp
28+
*.h text diff=c
29+
*.h++ text diff=cpp
30+
*.hh text diff=cpp
31+
32+
*.md text
33+
*.yaml text
34+
*.yml text
35+
2636

2737
# Denote all files that are truly binary and should not be modified.
2838
# Even if we don't have any of these, they make a good example.
29-
*.png binary
30-
*.jpg binary
39+
*.png binary
40+
*.jpg binary

0 commit comments

Comments
 (0)