-
-
Notifications
You must be signed in to change notification settings - Fork 111
/
.gitattributes
155 lines (141 loc) · 2.41 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# https://help.github.com/articles/dealing-with-line-endings/
#--------- Set the default behavior, in case people don't have core.autocrlf set
* text=auto
#--------- c++ file encoding
# force Github to re-encode & store non-UTF-8 text files as UTF-8. Upon checkout, these files might revert to their original encoding.
*.cpp text diff=cpp working-tree-encoding=UTF-8 eol=lf
*.c text diff=cpp working-tree-encoding=UTF-8
*.h text diff=cpp working-tree-encoding=UTF-8 eol=lf
*.hpp text diff=cpp working-tree-encoding=UTF-8
# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary
# Precompiled Headers
*.gch binary
*.pch binary
# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary
# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary
# Executables
*.app binary
*.exe binary
*.out binary
#--------- end c++ file encoding
#--------- Declare text files that will always have LF line endings on checkout
*.md text eol=lf
*.pri text eol=lf
*.pro text eol=lf
*.py text eol=lf
*.qrc text eol=lf
*.spec text eol=lf
*.txt text eol=lf
#--------- end Declare text files that will always have LF line endings on checkout
#--------- Begin encoding for non-c++ binary files
#graphics
*.ico binary
*.png binary
*.jpg binary
*.bmp binary
*.gif binary
*.ttf binary
#artifacts
*.dll binary
*.ocx binary
*.pdb binary
*.apx binary
*.snk binary
*.pfx binary
*.pdf binary
#--------- end encoding for additional files
#--------- Explicitly declare text files you want to always be normalized and converted to native line endings on checkout.
#.foo text
#--------- end Explicity declare text files...
# How to get extension in source
# find $PWD | sed -e 's/.*\///' | grep '.\..' | sed -e 's/.*\.//' | sort | uniq
# 1
# ai
# backupfiles
# bat
# bookmarks
# branch
# changelog
# compat
# control
# copyright
# cpp
# css
# d
# desc
# desktop
# dirs
# dirstate
# dll
# docs
# dsc
# ebuild
# exe
# files
# fncache
# format
# gif
# h
# html
# i
# icns
# ico
# include-binaries
# info
# install
# iss
# js
# json
# local
# log
# manpages
# map
# md
# md5
# menu
# mime
# pdf
# phaseroots
# plist
# png
# postinst
# postrm
# pri
# pro
# properties
# py
# qm
# qrc
# rc
# recipe
# rules
# sh
# sharedmimeinfo
# SlackBuild
# spec
# strings
# substvars
# svg
# theme
# ts
# tx
# txt
# ui
# val
# vit
# vst
# xcf
# xml
# xsd
# yml