-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
100 lines (91 loc) · 4.18 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
# Auto detect text files and perform LF normalization
* text=auto
###############################################################################
# Dotnet
#
# The diff option is needed for earlier builds of msysgit that does not have it
# on by default for csharp files. (Note: This is only used by command line)
###############################################################################
*.cs text eol=crlf diff=csharp
*.cshtml text eol=crlf diff=html
*.csx text eol=crlf diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.sqlproj merge=binary
###############################################################################
# Text files
###############################################################################
*.config text eol=crlf
*.json text eol=crlf
*.ini text eol=crlf
*.xml text eol=crlf
*.txt text eol=crlf
*.md text eol=crlf diff=markdown
*.mdx text eol=crlf diff=markdown
*.yml text eol=crlf
.editorconfig text eol=crlf
.gitattributes text eol=crlf
.gitignore text eol=crlf
###############################################################################
# Text files without extensions
###############################################################################
README text eol=crlf
LICENSE text eol=crlf
CHANGELOG text eol=crlf
INSTALL text eol=crlf
COPYRIGHT text eol=crlf
CHANGES text eol=crlf
AUTHORS text eol=crlf
CONTRIBUTING text eol=crlf
COPYING text eol=crlf
###############################################################################
# Text files where line endings should be preserved
###############################################################################
*.patch -text
###############################################################################
# Scripts
#
# Windows adopted Unicode before UTF-8 was recommended by the Unicode Consortium,
# which is why Windows initially was based on UCS-2. By the time UTF-8 and UTF-16
# grew in popularity, it was too late for Windows to change over to UTF-8 without
# breaking a magnitude of existing code, however, however UTF-16 is backwards
# compatible with UCS-2 which is the primary reason why Windows PowerShell scripts
# (Version 5.1) uses UTF-16LE. If nessary, this can be specified here with adding
# 'working-tree-encoding=UTF-16' to the affected line.
#
# If a file with this attribute is added to Git, then Git reencodes the content
# from the specified encoding to UTF-8. Finally, Git stores the UTF-8 encoded
# content in its internal data structure (called "the index"). On checkout the
# content is reencoded back to the specified encoding.
#
# Fortunately, PowerShell Core (Version 7) defaults to BOM-less UTF-8, which
# stays in line with Unix-like platforms.
###############################################################################
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.sh text eol=lf
###############################################################################
# Binaries
###############################################################################
*.dll binary
*.exe binary
*.pfx binary
*.cer binary
*.pem binary
###############################################################################
# Exclude files from exporting
###############################################################################
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore