-
Notifications
You must be signed in to change notification settings - Fork 109
/
.gitattributes
29 lines (22 loc) · 973 Bytes
/
.gitattributes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# consistent line endings
# References:
# http://stackoverflow.com/questions/26407408/dealing-with-eol-characters-in-cygwin-git-and-git-for-windows-accessing-the-same
# https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings
# https://github.com/mono/mono/blob/master/.gitattributes
# https://git-scm.com/docs/gitattributes
# line endings are normalized to LF on _checkin_.
# this just applies to what git thinks are text files
* text=auto
# except ... for the special .gitignore_global due to the weird Icon^M file
common-setup/gitignore_global -text
# don't fuck with binaries
*.jpg -text
*.exe -text
*.bat eol=crlf
*.ps1 eol=crlf
# everything - including stuff Git don't think is text - is normalized
common-setup/** eol=lf
# To view the effect:
# $ rm .git/index # Remove the index to force Git to
# $ git reset # re-scan the working directory
# $ git status # Show files that will be normalized