forked from CHEF-KOCH/regtweaks
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitattributes
115 lines (105 loc) · 3.91 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# 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
*.psm1 diff=asplaintext
*.psd1 diff=localizablestrings
# 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
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
*.filters text eol=crlf
*.props text eol=crlf
*.vcproj text eol=crlf
*.vcxitems text eol=crlf
*.vcxproj text eol=crlf
*.cs diff=csharp
*.sh text eol=lf
# Declare files that will always have CRLF line endings on checkout.
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration
# https://git-scm.com/docs/gitattributes
# https://github.com/git/git/commit/fe21c6b285df4088f9685d5deed425064367ea24
# https://github.com/git/git/commit/665177ebf2e948504dcb255d2f58817224a8935a
#*.reg text working-tree-encoding=UTF-16LE eol=CRLF
*.ahk text eol=crlf
*.bat text eol=crlf
*.BAT text eol=crlf
*.cmd text eol=crlf
*.CMD text eol=crlf
*.inf diff linguist-language=INI
*.ps1 text eol=lf
*.psc1 text eol=crlf
*.sh eol=lf
*.DotSettings text eol=lf
*.xml text
# 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
# https://stackoverflow.com/questions/5046032/git-says-binary-files-a-and-b-differ-on-for-reg-files
*.reg binary
*.zip binary
*.woff binary
*.ttf binary
*.eot binary
*.xls binary
*.xlsx binary
*.doc binary
*.docx binary
*.gif binary
# LaTeX
*.BIB eol=crlf
*.LYX eol=crlf
*.TEX eol=crlf
*.bib 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,
#}
######################################
# Your gitconfig MUST look like this #
######################################
# [core]
# repositoryformatversion = 0
# filemode = false
# bare = false
# logallrefupdates = true
# symlinks = false
# ignorecase = true
# hideDotFiles = dotGitOnly
####################################################
# In your .gitconfig you MUST 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"