-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitattributes
64 lines (51 loc) · 1.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
# Git Attributes
# Vim: set ft=git:
# Dude tpope wrote this ftplugin how bad ass is that?
# WHOAAAAA keywordprg is now git show!
# That's too good
# Line endings
* eol=lf text diff
text=auto diff
# File type specific line endings
*.txt text whitespace=trailing-space,space-before-tab diff
*.rst text whitespace=trailing-space,space-before-tab,tab-in-indent
*.yml text diff
*.html text diff
# The system knows a built-in macro attribute, binary:
*.spl binary
*.ttf binary
*.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
*.sh text eol=lf diff
# And because this just fucked up
*.ps1 text eol=input diff
# Binary files
doc/_images/* binary
*.png binary
*.doctree binary
*.pickle binary
*.ttf binary
*.svg binary
*.pdf binary
*.jp[e]?g binary
*.out binary
*.rock 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
# The system knows a built-in macro attribute, binary:
*.spl binary
*.ttf binary
*.png binary
*.jpg binary
*.svg binary
*.pdf binary
*.jp[e]?g binary
*.py diff=python
*.ipy diff=python
*.sh text eol=lf
*.vim text eol=lf