-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitattributes
24 lines (22 loc) · 1.13 KB
/
.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
# -------------------------------------------------------------------------------------------------------------
# Normalization of line endings using Git
# References:-
# https://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/
# https://git-scm.com/docs/gitattributes
#
# Normalization when checking-in to Git database (in order of precedence)
# i) specific attributes in .gitattributes (text/eol/binary) determines conversion to LF
# ii) text=auto in .gitattributes determines conversion to LF for all other files Git considers as text
# iii) core.autocrlf (if above not present)
#
# Normalization when checking-out to working directory
# i) specific attributes in .gitattributes (eol) determines CRLF conversion
# ii) core.autocrlf = true converts to CRLF
# iii) core.eol (if above not present)
# -------------------------------------------------------------------------------------------------------------
# Normalize all other text files not explicitly specified
# Check-in - converts to LF
# Check-out - depends on core.autocrlf or core.eol
* text=auto
# Denote all files that are truly binary and should not be modified.
#*.png binary