Refactor .gitattributes and .gitignore

This commit is contained in:
luckytyphlosion 2018-09-19 21:49:10 -04:00
parent 1564896060
commit 0a2eabd59a
2 changed files with 33 additions and 9 deletions

39
.gitattributes vendored
View File

@ -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
# 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
*.bin binary diff=hex
*.blk binary diff=hex

1
.gitignore vendored
View File

@ -17,6 +17,7 @@
*.sgm
*.sav
*.rtc
*.sn*
# rgbds extras
*.map