6 ISBINARY=" -diff -crlf"
11 eol=`cat .gitattributes`
12 find . -name .git -prune -o \( -type f -print \) | {
13 unseen=`echo "$eol" | cut -d ' ' -f 1 | grep .`
15 while IFS= read -r LINE; do
22 t=`file -b --mime-type "$LINE"`
24 application/x-symlink)
27 text/*|application/xml|application/x-ruby)
34 unseen=`{ echo "$nam"; echo "$nam"; echo "$unseen"; } | sort | uniq -u`
35 case "$LF$eol$LF$neweol$LF" in
36 *$LF$nam$ISANYTHING*$LF*)
37 # ignore and treat as binary
39 *$LF$nam$ISBINARY*$LF*)
42 echo "WARNING: file $LINE is text, should be binary"
48 echo "WARNING: file $LINE is binary, should be text"
54 echo "NOTE: added new type TEXT for $LINE"
55 neweol="$neweol$LF$nam$ISTEXT"
57 echo "NOTE: added new type BINARY for $LINE"
58 neweol="$neweol$LF$nam$ISBINARY"
64 echo "not seen: $unseen"