-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
85 lines (74 loc) · 2.99 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
# Git Attributes
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto eol=lf
text=auto diff
# File type specific line endings
*.txt text whitespace=trailing-space,space-before-tab
*.rst text whitespace=trailing-space,space-before-tab,tab-in-indent
*.yml text
*.html text
# File type diffs
*.py text diff=python whitespace=trailing-space,space-before-tab,tab-in-indent
*.ipynb diff=python
*.ipy diff=python
*.js diff=javascript
*.html diff=html
# Binary files
doc/_images/* binary
*.png binary
*.doctree binary
*.pickle binary
*.ttf binary
*.svg binary
*.pdf binary
*.jp[e]?g binary
# This is an odd {to say the least} regex but I got from it from M$FT themselves
# https://code.visualstudio.com/docs/remote/troubleshooting#_resolving-git-line-ending-issues-in-containers-resulting-in-many-modified-files
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
# M$FT's standard gitattributes
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need 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 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
*.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
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
# here' hoping this replaces 4 lines for case insensitive doc docx
*.{doc,[dD][oO][cC][x]?} diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain