-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
105 lines (89 loc) · 3.71 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
# `GLOB text` to set the text attribute with no value for files matching GLOB
# `GLOB -text` to unset any existing text attribute value for files matching GLOB
# `GLOB text=auto` to explicitly set the text attribute to auto for files matching GLOB
# `GLOB !text` to set the text attribute to unspecified
# `GLOB binary` is equivalent to `GLOB -text -diff` which disables any end-of-line conversion and does not produce textual diffs
# The 'eol' attribute controls which line-ending files should use in your working directory;
# that is, your LOCAL COPY of the repository. This is APPLIED TO FILES UPON CHECKOUT.
# The 'text' attribute controls whether crlf->lf end-of-line normalization should APPLY UPON COMMIT;
# that is, if `text` is set, the REMOTE COPY of the matching files will always have its line endings normalized to the unix-style lf.
### Don't muck with binary files by default; unless explicitly specified otherwise below,
### only modify files automatically detected as text, normalizing line-endings upon commit.
### This also deals with files that often dont have extensions,
* text=auto eol=lf
### Force local copies to use lf on files like these
## Scripts
*.sh text eol=lf
*.csh text eol=lf
*.tcsh text eol=lf
*.fish text eol=lf
*.bash* text eol=lf
*.zsh* text eol=lf
*.cshrc text eol=lf
*.tcshrc text eol=lf
*.py text eol=lf diff=python
*.pyi text eol=lf diff=python
## RC Files
.sqliterc text eol=lf
.pythonrc text eol=lf
.inputrc text eol=lf
.minttyrc text eol=lf
*.nanorc text eol=lf
.gemrc text eol=lf
# gemrc text eol=lf
## Serialized and Configs
*.ini text eol=lf
*.json text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.toml text eol=lf
*.properties text eol=lf
*.xml text eol=lf
*.cfg text eol=lf
*.conf text eol=lf
*.config text eol=lf
## Markup, Markdown, Formatting, Styling, and a partridge in a pear tree
*.md text eol=lf diff=markdown
*.markdown text eol=lf diff=markdown
*.css text eol=lf diff=css
*.htm text eol=lf diff=html
*.html text eol=lf diff=html
## Other
*.git* text eol=lf
*.env text eol=lf
.infokey text eol=lf
.profile text eol=lf
.editorconfig text eol=lf
.gdbinit text eol=lf
# gdbinit text eol=lf
# .*ignore text eol=lf
Dockerfile text eol=lf
*.mk text eol=lf
*.Makefile text eol=lf
Makefile text eol=lf
### Force local copies to use crlf on files like these
*.cmd text eol=crlf
*.bat text eol=crlf
*.reg text eol=crlf
*.ps1 text eol=crlf
# /.idea/* text text eol=crlf
### For files like these, never touch the line endings, but continue to generate textual diffs
*.patch -text
### Treat files like these as binary files; never touch line endings, never generate textual diffs
*.lock binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
# I assume this is considered a binary file by git, and should normally be in .gitignore, but better safe than sorry.
desktop.ini binary
### Don't do anything to these files
# LICENSE text eol=lf
# CONTRIBUTING text eol=lf
# CHANGELOG text eol=lf
# COPYING text eol=lf
# INSTALL text eol=lf
# NEWS text eol=lf
# *README* text eol=lf
# TODO text eol=lf