blob: ca85b4618f19b7fb5f9da43a73833a622f208a3c [file] [log] [blame]
Mike Weiblen84f17cb2017-10-09 10:31:21 -06001# See https://git-scm.com/docs/gitattributes
2# See https://help.github.com/articles/dealing-with-line-endings/
3
Mike Weiblencf49cc12018-02-23 13:26:08 -07004# Default behavior, if core.autocrlf is unset.
Mike Weiblen84f17cb2017-10-09 10:31:21 -06005* text=auto
6
Mike Weiblencf49cc12018-02-23 13:26:08 -07007# Files to be converted to native line endings on checkout.
Mike Weiblen84f17cb2017-10-09 10:31:21 -06008*.cpp text
9*.h text
10
Mike Weiblencf49cc12018-02-23 13:26:08 -070011# Text files to always have CRLF (dos) line endings on checkout.
Mike Weiblen84f17cb2017-10-09 10:31:21 -060012*.bat text eol=crlf
13
Mike Weiblencf49cc12018-02-23 13:26:08 -070014# Text files to always have LF (unix) line endings on checkout.
15*.sh text eol=lf
Mike Weiblen84f17cb2017-10-09 10:31:21 -060016