-
Notifications
You must be signed in to change notification settings - Fork 37
/
.gitattributes
69 lines (65 loc) · 4.27 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
# https://git-scm.com/docs/gitattributes
# https://git-scm.com/docs/git-config
# https://stackoverflow.com/questions/13819764/indentation-configuration-only-for-some-files
###########################################################################################
# Set default behavior to automatically normalize line endings.
# When text is set to "auto", the path is marked for automatic end-of-line conversion.
# If Git decides that the content is text, its line endings are converted to LF on checkin.
# When the file has been committed with CRLF, no conversion is done.
###########################################################################################
* text=auto
###########################################################################################
# "text" attribute sets a specific line-ending style to be used in the working directory.
# It enables end-of-line conversion without any content checks, setting the text attribute.
# This setting forces Git to normalize line endings for this file on checkin and convert
# them to CRLF when the file is checked out.
# "eol" attribute sets a specific line-ending style to be used in the working directory.
# "whitespace" defines what diff and apply should consider whitespace errors for all paths.
# "trailing-space" warns on trailing white space characters at the end-of-line or end-of-file.
# "space-before-tab" to catch spaces hidden before and between the tabs.
# "indent-with-non-tab" warns when "tabwidth" or more spaces are used at the start of a line.
# "tab-in-indent" treats a tab character in the initial indent part of the line as an error.
# "tabwidth" in the whitespace option is used to determine when and how to replace the
# tab and space characters, allowed values are 1 to 63
# Run git check-attr --all <path\to\>file.ext to verify attributes of the file
###########################################################################################
# Binary files
*.png binary
*.gif binary
*.pmc binary
*.pmf binary
*.msc binary
*.wav binary
*.dll binary
*.cab binary
# Text files to interpret as binary due to issues with encoding
*.test binary
*.ansi binary
# PowerShell code files
*.ps1 text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.psm1 text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.psd1 text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.ps1xml text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.pssc text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
# Markup code files
*.xml text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=2
*.yml text eol=crlf whitespace=trailing-space,space-before-tab,tab-in-indent,tabwidth=2
*.json text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.jsonc text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.html text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=2
# Other code files
*.js text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.cs text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.sh text eol=lf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
# Text files
*.md text eol=crlf whitespace=trailing-space,space-before-tab,tab-in-indent,tabwidth=2
*.ini text eol=crlf whitespace=trailing-space,space-before-tab,tab-in-indent,tabwidth=4
*.txt text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
*.dic text eol=crlf whitespace=trailing-space,space-before-tab,tab-in-indent,tabwidth=4
# Configuration files
*.wpaPresets text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=2
*.wpaProfile text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=2
# Files without extensions
LICENSE text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
config text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
sshd_config text eol=crlf whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4