-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitattributes
31 lines (27 loc) · 1.04 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
######################################################################
# gitattributes(5) describes the format and usage of this file.
#
# References:
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
# http://git-scm.com/book/ch7-2.html
#
# Note: When more than one pattern matches the path,
# a later line overrides an earlier line.
#
######################################################################
# By default, all files are text and retain LF endings, even on Windows.
# https://help.github.com/articles/dealing-with-line-endings
* text eol=lf
# Image files are binary.
# "binary" is an alias for "-text -diff".
*.png binary
# Use built-in patterns to generate smarter diff text.
# http://urbanautomaton.com/blog/2011/07/28/git-grep-and-language-specific-diffs/
*.js diff=java
*.php diff=php
*.pl diff=perl
*.py diff=python
*.rb diff=ruby
# Allow blank lines at the end of these files.
# https://git-scm.com/docs/gitattributes#_checking_whitespace_errors
# https://git-scm.com/docs/git-config#git-config-corewhitespace