forked from CHEF-KOCH/regtweaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitattributes
71 lines (63 loc) · 2.44 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Set the default behavior, in case people don't have core.autocrlf=true set.
# https://help.github.com/en/articles/dealing-with-line-endings
* text=auto
*.gitattributes text
.gitignore text
# Exclude files from exporting.
.gitattributes export-ignore
.gitignore export-ignore
# Visual Studio Studio/Core (because I use it)
#*.sln text eol=crlf
#*.xproj text eol=crlf
*.filters text eol=crlf
*.props text eol=crlf
*.vcproj text eol=crlf
*.vcxitems text eol=crlf
*.vcxproj text eol=crlf
*.cs diff=csharp
# Declare files that will always have CRLF line endings on checkout.
# https://help.github.com/en/articles/dealing-with-line-endings
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration
# https://git-scm.com/docs/gitattributes
*.reg text working-tree-encoding=UTF-16
*.bat text eol=crlf
*.BAT text eol=crlf
*.cmd text eol=crlf
*.CMD text eol=crlf
*.inf diff linguist-language=INI
*.ps1 eol=lf
*.sh eol=lf
*.txt eol=crlf
*.TXT eol=crlf
# Denote all files that are truly binary and should not be modified.
*.cer binary
*.dll binary
*.exe binary
*.jpg binary
*.pdf binary
*.png binary
*.rar binary
*.zip binary
# LaTeX
*.BIB eol=crlf
*.LYX eol=crlf
*.TEX eol=crlf
*.bib eol=crlf
*.lyx eol=crlf
*.LYX eol=crlf
*.tex eol=crlf
# Handle Group Policy templates as text so they can be diff'ed
*.adml diff linguist-language=XML
*.admx diff linguist-language=XML
*.adm diff linguist-language=XML
# In Visual Studio Code set the following (encoding per language):
# https://github.com/Microsoft/vscode/issues/4891
# https://code.visualstudio.com/docs/languages/identifiers
#"[reg]": {
# "files.encoding": "utf16le",
# "files.autoGuessEncoding": true,
#}
# In your .gitconfig you need to set the following
# https://stackoverflow.com/questions/777949/can-i-make-git-recognize-a-utf-16-file-as-text/21020607#21020607
#[diff "utf16"]
# textconv = "iconv -f utf-16 -t utf-8"