| 1 |
# Set the default behavior, in case people don't have core.autolf set. |
| 2 |
* text=auto |
| 3 |
|
| 4 |
# Explicitly declare text files you want to always be normalized and converted |
| 5 |
# to have LF line endings on checkout. |
| 6 |
*.c text eol=lf |
| 7 |
*.cpp text eol=lf |
| 8 |
*.cc text eol=lf |
| 9 |
*.h text eol=lf |
| 10 |
*.hpp text eol=lf |
| 11 |
*.txt text eol=lf |
| 12 |
|
| 13 |
# Define files to support auto-remove trailing white space |
| 14 |
# Need to run the command below, before add modified file(s) to the staging area |
| 15 |
# git config filter.trimspace.clean 'sed -e "s/[[:space:]]*$//g"' |
| 16 |
*.cpp filter=trimspace |
| 17 |
*.c filter=trimspace |
| 18 |
*.h filter=trimspacecpp |
| 19 |
*.hpp filter=trimspace |
| 20 |
*.md filter=trimspace |