Mike Weiblen | 84f17cb | 2017-10-09 10:31:21 -0600 | [diff] [blame] | 1 | # See https://git-scm.com/docs/gitattributes |
| 2 | # See https://help.github.com/articles/dealing-with-line-endings/ |
| 3 | |
Mike Weiblen | cf49cc1 | 2018-02-23 13:26:08 -0700 | [diff] [blame] | 4 | # Default behavior, if core.autocrlf is unset. |
Mike Weiblen | 84f17cb | 2017-10-09 10:31:21 -0600 | [diff] [blame] | 5 | * text=auto |
| 6 | |
Mike Weiblen | cf49cc1 | 2018-02-23 13:26:08 -0700 | [diff] [blame] | 7 | # Files to be converted to native line endings on checkout. |
Mike Weiblen | 84f17cb | 2017-10-09 10:31:21 -0600 | [diff] [blame] | 8 | *.cpp text |
| 9 | *.h text |
| 10 | |
Mike Weiblen | cf49cc1 | 2018-02-23 13:26:08 -0700 | [diff] [blame] | 11 | # Text files to always have CRLF (dos) line endings on checkout. |
Mike Weiblen | 84f17cb | 2017-10-09 10:31:21 -0600 | [diff] [blame] | 12 | *.bat text eol=crlf |
| 13 | |
Mike Weiblen | cf49cc1 | 2018-02-23 13:26:08 -0700 | [diff] [blame] | 14 | # Text files to always have LF (unix) line endings on checkout. |
| 15 | *.sh text eol=lf |
Mike Weiblen | 84f17cb | 2017-10-09 10:31:21 -0600 | [diff] [blame] | 16 | |