-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path.gitattributes
More file actions
33 lines (29 loc) · 1.11 KB
/
Copy path.gitattributes
File metadata and controls
33 lines (29 loc) · 1.11 KB
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
# Normalise line endings in the repository regardless of a contributor's core.autocrlf setting.
#
# Without this, whether a file is stored with LF or CRLF depends on how each person happens to
# have git configured, and a Windows contributor and a Linux one can produce whole-file diffs
# that contain no actual change.
* text=auto
# Never touched, whatever they contain.
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg text
*.ttf binary
*.otf binary
*.jar binary
*.gz binary
*.zip binary
# Committed with CRLF before the normalisation above. Pinning the path keeps CR-at-EOL out of the
# whitespace check and stops an edit to one line from renormalising the whole file, which would show
# as a full rewrite and bury the actual change.
plugins/google-services/src/main/kotlin/com/github/ahatem/qtranslate/plugins/google/GooglePlugin.kt -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
# Must stay CRLF to run on Windows.
*.bat text eol=crlf
*.cmd text eol=crlf
gradlew.bat text eol=crlf
# Must stay LF to run on a Unix shell.
gradlew text eol=lf
*.sh text eol=lf