# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Force batch scripts to always use CRLF line endings so that if a repo is
# accessed in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf

# Force bash scripts to always use LF line endings so that if a repo is
# accessed in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf

# Explicitly declare source files to always be normalized and converted
# to native line endings on checkout.
*.svd text
*.xml text
*.svg text
*.dot text
*.S text
*.s text
*.c text
*.h text
*.py text
*.ld text
Makefile* text
Doxyfile* text

# Declare files that will always have CRLF line endings on checkout.
*.sln      eol=crlf
*.vcproj   eol=crlf
*.ico      -text

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.out binary
*.bin binary
*.hex binary
*.pdf binary
*.zip binary

*.db     binary
*.p      binary
*.pkl    binary
*.pickle binary
*.pyc    binary
*.pyd    binary
*.pyo    binary

# special cases
*.patch binary
*.diff binary
