diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..0a4aa5ab71 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,38 @@ +.git* export-ignore +.hooks* export-ignore +.mailmap export-ignore + +*.bat -crlf +*.bin -crlf +*.jpg -crlf +*.mha -crlf +*.pdf -crlf +*.png -crlf +*.raw -crlf +*.sh crlf=input +*.sh.in crlf=input +configure crlf=input +cvsrmvend crlf=input +imcp crlf=input +imglob crlf=input +imln crlf=input +immv crlf=input +imrm crlf=input +imtest crlf=input +install-sh crlf=input +newalpha crlf=input +newversion crlf=input +remove_ext crlf=input +vxl_doxy.pl crlf=input +zap.pl crlf=input + +*.c whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,uncrustify +*.h whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,uncrustify +*.cxx whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,uncrustify +*.hxx whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,uncrustify +*.txx whitespace=tab-in-indent,no-lf-at-eof hooks.style=KWStyle,uncrustify +*.txt whitespace=tab-in-indent,no-lf-at-eof +*.cmake whitespace=tab-in-indent,no-lf-at-eof + +# ExternalData content links must have LF newlines +*.md5 crlf=input