forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
55 lines (44 loc) · 1.49 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
# DIFFS: Noise suppression.
# Suppress noisy generated files in diffs.
yarn.lock -diff
src/webview/js/generatedEs3.js -diff
# The flow-typed files that aren't pure generated noise have names with at
# least a major version number -- like `redux_v4.x.x.js`.
flow-typed/npm/*_vx.x.x.js -diff
flow-typed/npm/*/*_vx.x.x.js -diff
# DIFFS: Per-language drivers.
#
# In the output of `git diff` and `git log -p` etc., there's a handy
# "hunk header" on the `@@` line at the top of each hunk, to help the
# reader see what area of the code it affects. This has a reasonable
# language-independent default, but Git also offers specific patterns
# for a few languages. Use them, where they're better.
#
# Sadly there is no JavaScript pattern. (And sadly for zulip/zulip:
# for Python the special one is worse than the default.) For the list,
# see `git help attributes`.
# For Java, shows the method instead of the class; much better.
*.java diff=java
# For Objective-C, the default completely misses most function definitions.
ios/**/*.m diff=objc
ios/**/*.h diff=objc
# We don't currently have any CSS files, but let's bet on this being better.
*.css diff=css
# FORMATTING
# Maintain LF (Unix-style) newlines in text files.
* text=auto eol=lf
*.bat eol=crlf
# Make sure various media files never get somehow auto-detected as text
# and then newline-converted.
*.mp3 binary
*.gif binary
*.jpg binary
*.jpeg binary
*.eot binary
*.woff binary
*.woff2 binary
*.svg binary
*.ttf binary
*.png binary
*.otf binary
*.tif binary