-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
69 lines (55 loc) · 1.89 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
# DIFFS: Noise suppression.
# Suppress noisy generated files in diffs.
# From dependency management:
yarn.lock -diff
ios/Podfile.lock -diff
# For Flow libdefs:
# 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
# From our build:
src/webview/js/generatedEs3.js -diff
# Snapshots for tests:
src/webview/__tests__/__snapshots__/** -diff
# and an old location of those:
src/webview/html/__tests__/__snapshots__/** -diff
# or quite possibly it should be more general, like this:
#**/__snapshots__/** -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
# … except Windows batch files get CRLF (Windows-style) newlines instead.
*.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