-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.gitattributes
48 lines (44 loc) · 1.37 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This file configures how Git treats line endings.
# This is important because we're working on both Windows and Unix machines.
# For details see https://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/
# and https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/.
# Git runs CRLF to LF replacement on files marked as `text`
# every time they are written to the object database
# and the reverse replacement when writing to the working directory.
# When spurious diffs due to EOL changes occur (e.g., after pulling remote), do the following:
# * Inspect EOL with `git ls-files --eol`.
# * Stage the diffs.
# * Run `git rm --cached -r . && git reset --hard`.
# * Run `git add --renormalize .`.
# * Inspect EOL with `git lf-files --eol` again to verify that conversion worked.
# * Commit the change containing the EOL conversions.
*.c text
*.h text
*.py text
*.sh text
*.md text
*.txt text
*.html text
*.json text
*.yml text
*.yaml text
*.sdf text
*.props text
*.ruleset text
*.sln text
*.vcxproj text
*.def text
*.map text
*.user text
makefile text
makefile32 text
*.sqlite binary
*.png binary
*.gz binary
*.exe binary
*.zip binary
*.dll binary
*.docx binary
*.pdf binary
*.jpg binary
*.lib binary