gitattributes: clean up .map files on commit

This commit is contained in:
Rudolf Polzer 2010-10-21 17:30:21 +02:00
parent 6b0de8c456
commit 955bb97642
2 changed files with 57 additions and 57 deletions

106
.gitattributes vendored
View File

@ -1,6 +1,6 @@
* -crlf * -crlf
*.7z -crlf -diff *.7z -diff -crlf
*.ac crlf=input *.ac crlf=input
*.afm crlf=input *.afm crlf=input
*.aft crlf=input *.aft crlf=input
@ -8,19 +8,19 @@
all crlf=input all crlf=input
*.am crlf=input *.am crlf=input
*.animinfo crlf=input *.animinfo crlf=input
*.aps -crlf -diff *.aps -diff -crlf
*.ase -crlf *.ase -crlf
*.bat -crlf *.bat -crlf
*.bgs crlf=input *.bgs crlf=input
*.blend -crlf -diff *.blend -diff -crlf
*.bmp -crlf -diff *.bmp -diff -crlf
branch-manager crlf=input branch-manager crlf=input
BSDmakefile crlf=input BSDmakefile crlf=input
bsp2ent crlf=input bsp2ent crlf=input
*.bsp -crlf -diff *.bsp -diff -crlf
*.cache -crlf -diff *.cache -diff -crlf
*.cbp -crlf *.cbp -crlf
*.cbp -crlf -diff *.cbp -diff -crlf
*.c crlf=input *.c crlf=input
*.cfg crlf=input *.cfg crlf=input
*.cg crlf=input *.cg crlf=input
@ -34,26 +34,26 @@ COPYING crlf=input
*.cpp crlf=input *.cpp crlf=input
create crlf=input create crlf=input
*.css crlf=input *.css crlf=input
Current -crlf -diff Current -diff -crlf
*.cvsignore crlf=input *.cvsignore crlf=input
*.cvswrappers crlf=input *.cvswrappers crlf=input
*.dat -crlf -diff *.dat -diff -crlf
*.db -crlf -diff *.db -diff -crlf
*.default crlf=input *.default crlf=input
*.def crlf=input *.def crlf=input
*.dem -crlf -diff *.dem -diff -crlf
*.dev -crlf *.dev -crlf
*.dll -crlf -diff *.dll -diff -crlf
DOCS -crlf -diff DOCS -diff -crlf
*.dot crlf=input *.dot crlf=input
DoxyConfig crlf=input DoxyConfig crlf=input
Doxyfile crlf=input Doxyfile crlf=input
*.doxygen crlf=input *.doxygen crlf=input
*.dpm -crlf -diff *.dpm -diff -crlf
*.dsp -crlf *.dsp -crlf
*.dsw -crlf *.dsw -crlf
*.dtd crlf=input *.dtd crlf=input
*.dylib -crlf -diff *.dylib -diff -crlf
*.EncoderPlugin crlf=input *.EncoderPlugin crlf=input
*.ent -crlf *.ent -crlf
*.form crlf=input *.form crlf=input
@ -62,7 +62,7 @@ Doxyfile crlf=input
gendox crlf=input gendox crlf=input
gendoxfunctions crlf=input gendoxfunctions crlf=input
genDoxyfile crlf=input genDoxyfile crlf=input
*.gif -crlf -diff *.gif -diff -crlf
*.gitattributes crlf=input *.gitattributes crlf=input
git-branch-manager crlf=input git-branch-manager crlf=input
git-filter-index crlf=input git-filter-index crlf=input
@ -81,64 +81,64 @@ GPL crlf=input
*.hs crlf=input *.hs crlf=input
*.html crlf=input *.html crlf=input
*.html-part crlf=input *.html-part crlf=input
*.icns -crlf -diff *.icns -diff -crlf
*.ico -crlf -diff *.ico -diff -crlf
*.idsoftware crlf=input *.idsoftware crlf=input
*.inc crlf=input *.inc crlf=input
*.in crlf=input *.in crlf=input
*.instantaction crlf=input *.instantaction crlf=input
*.iqm -crlf -diff *.iqm -diff -crlf
*.java crlf=input *.java crlf=input
*.jhm crlf=input *.jhm crlf=input
*.jnlp crlf=input *.jnlp crlf=input
*.jpg -crlf -diff *.jpg -diff -crlf
*.jsmooth crlf=input *.jsmooth crlf=input
LGPL crlf=input LGPL crlf=input
LICENSE crlf=input LICENSE crlf=input
*.lmp -crlf -diff *.lmp -diff -crlf
*.loaders crlf=input *.loaders crlf=input
*.lso -crlf -diff *.lso -diff -crlf
makefile crlf=input makefile crlf=input
Makefile crlf=input Makefile crlf=input
*.makespr32 crlf=input *.makespr32 crlf=input
makespr32 crlf=input makespr32 crlf=input
*.map -crlf *.map -crlf filter=mapclean
*.mapinfo crlf=input *.mapinfo crlf=input
*.m crlf=input *.m crlf=input
*.md3 -crlf -diff *.md3 -diff -crlf
*.md5anim -crlf *.md5anim -crlf
*.md5mesh -crlf *.md5mesh -crlf
*.mdl -crlf -diff *.mdl -diff -crlf
*.med crlf=input *.med crlf=input
*.mf crlf=input *.mf crlf=input
*.mid -crlf -diff *.mid -diff -crlf
*.mk crlf=input *.mk crlf=input
*.mkdir -crlf -diff *.mkdir -diff -crlf
*.mmpz -crlf -diff *.mmpz -diff -crlf
*.modinfo crlf=input *.modinfo crlf=input
*.modules crlf=input *.modules crlf=input
nexuiz-map-compiler crlf=input nexuiz-map-compiler crlf=input
*.nib -crlf *.nib -crlf
*.obj -crlf *.obj -crlf
OFFSETS -crlf -diff OFFSETS -diff -crlf
*.ogg -crlf -diff *.ogg -diff -crlf
*.options crlf=input *.options crlf=input
pangorc crlf=input pangorc crlf=input
*.patch crlf=input *.patch crlf=input
*.patchsets crlf=input *.patchsets crlf=input
*.pcx -crlf -diff *.pcx -diff -crlf
*.pfb -crlf -diff *.pfb -diff -crlf
*.pfm -crlf -diff *.pfm -diff -crlf
*.pk3 -crlf -diff *.pk3 -diff -crlf
PkgInfo crlf=input PkgInfo crlf=input
*.pl crlf=input *.pl crlf=input
*.plist crlf=input *.plist crlf=input
*.pm crlf=input *.pm crlf=input
*.png -crlf -diff *.png -diff -crlf
POSITIONS -crlf -diff POSITIONS -diff -crlf
*.proj -crlf *.proj -crlf
*.properties crlf=input *.properties crlf=input
*.psd -crlf -diff *.psd -diff -crlf
*.py crlf=input *.py crlf=input
*.q3map1 crlf=input *.q3map1 crlf=input
*.qc crlf=input *.qc crlf=input
@ -149,46 +149,46 @@ POSITIONS -crlf -diff
*.rc -crlf *.rc -crlf
*.readme crlf=input *.readme crlf=input
README crlf=input README crlf=input
*.rtlights -crlf -diff *.rtlights -diff -crlf
SCHEMA crlf=input SCHEMA crlf=input
*.scm crlf=input *.scm crlf=input
SDL -crlf -diff SDL -diff -crlf
SDLMain.m crlf=input SDLMain.m crlf=input
*.shader crlf=input *.shader crlf=input
*.sh crlf=input *.sh crlf=input
*.skin crlf=input *.skin crlf=input
*.sln -crlf *.sln -crlf
*.sounds crlf=input *.sounds crlf=input
*.sp2 -crlf -diff *.sp2 -diff -crlf
*.spr32 -crlf -diff *.spr32 -diff -crlf
*.spr -crlf -diff *.spr -diff -crlf
*.src crlf=input *.src crlf=input
*.strings crlf=input *.strings crlf=input
*.strip crlf=input *.strip crlf=input
strip crlf=input strip crlf=input
*.svg -crlf -diff *.svg -diff -crlf
*.TAB -crlf -diff *.TAB -diff -crlf
*.tga -crlf -diff *.tga -diff -crlf
TMAP -crlf -diff TMAP -diff -crlf
todo crlf=input todo crlf=input
TODO crlf=input TODO crlf=input
*.ttf -crlf -diff *.ttf -diff -crlf
*.TTF -crlf -diff *.TTF -diff -crlf
*.txt crlf=input *.txt crlf=input
*.TXT crlf=input *.TXT crlf=input
update-shaderlists crlf=input update-shaderlists crlf=input
*.vcproj -crlf *.vcproj -crlf
*.wav -crlf -diff *.wav -diff -crlf
*.waypoints -crlf -diff *.waypoints -diff -crlf
w crlf=input w crlf=input
*.width crlf=input *.width crlf=input
*.workspace -crlf *.workspace -crlf
*.xcf -crlf -diff *.xcf -diff -crlf
*.xlink crlf=input *.xlink crlf=input
*.xml crlf=input *.xml crlf=input
xonotic-map-compiler-autobuild crlf=input xonotic-map-compiler-autobuild crlf=input
xonotic-map-compiler crlf=input xonotic-map-compiler crlf=input
*.xpm crlf=input *.xpm crlf=input
*.zip -crlf -diff *.zip -diff -crlf
zipdiff crlf=input zipdiff crlf=input
*.zym -crlf -diff *.zym -diff -crlf

View File

@ -3,7 +3,7 @@
exec 3<&0 exec 3<&0
ISANYTHING=" -crlf" ISANYTHING=" -crlf"
ISBINARY=" -crlf -diff" ISBINARY=" -diff -crlf"
ISTEXT=" crlf=input" ISTEXT=" crlf=input"
LF=" LF="
@ -33,16 +33,16 @@ find . -name .git -prune -o \( -type f -print \) | {
esac esac
unseen=`{ echo "$nam"; echo "$nam"; echo "$unseen"; } | sort | uniq -u` unseen=`{ echo "$nam"; echo "$nam"; echo "$unseen"; } | sort | uniq -u`
case "$LF$eol$LF$neweol$LF" in case "$LF$eol$LF$neweol$LF" in
*$LF$nam$ISANYTHING$LF*) *$LF$nam$ISANYTHING*$LF*)
# ignore and treat as binary # ignore and treat as binary
;; ;;
*$LF$nam$ISBINARY$LF*) *$LF$nam$ISBINARY*$LF*)
# should be binary # should be binary
if $t; then if $t; then
echo "WARNING: file $LINE is text, should be binary" echo "WARNING: file $LINE is text, should be binary"
fi fi
;; ;;
*$LF$nam$ISTEXT$LF*) *$LF$nam$ISTEXT*$LF*)
# should be text # should be text
if ! $t; then if ! $t; then
echo "WARNING: file $LINE is binary, should be text" echo "WARNING: file $LINE is binary, should be text"