ref: 0a2eabd59a3e23ad5904cf20a79d941ae3a0f806
parent: 15648960606da9b1e64c2171c5398d6a5f734b4f
author: luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>
date: Wed Sep 19 17:49:10 EDT 2018
Refactor .gitattributes and .gitignore
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,11 +1,34 @@
-# No monkey business with line endings
-* -text
+# Auto detect text files and perform LF normalization
+* text eol=lf
-# hexdump binary files
-*.png binary diff=hex
-*.lz binary diff=hex
-*.2bpp binary diff=hex
-*.1bpp binary diff=hex
-*.bin binary diff=hex
-*.blk binary diff=hex
+# Explicitly declare text files you want to always be normalized and converted
+# to native line endings on checkout.
+# files part of the build
+*.asm text
+*.pal text
+*.link text
+*.txt text
+
+# extra files
+*.awk text
+*.c text
+*.h text
+*.MD text
+*.py text
+*.sh text
+*.sha1 text
+
+# Denote all files that are truly binary and should not be modified.
+*.png binary diff=hex
+*.lz.* binary diff=hex
+*.bin binary diff=hex
+*.blk binary diff=hex
+*.rle binary diff=hex
+*.attrmap binary diff=hex
+*.tilemap binary diff=hex
+
+# these are generated but just in case
+*.lz binary diff=hex
+*.2bpp binary diff=hex
+*.1bpp binary diff=hex
\ No newline at end of file
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@
*.sgm
*.sav
*.rtc
+*.sn*
# rgbds extras
*.map