forked from NUS-ALSET/achievements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitattributes
55 lines (44 loc) · 1.28 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
# Why do you want this ?
# Because Git will see diffs between files shared between Linux and Windows
# due to differences in line ending handling ( Windows uses CRLF and Unix LF)
# There is a convenient collection of ready to use .gitattributes
# files for the most popular programming languages.
# It's useful to get you started
# from Danial Jomphe (https://stackoverflow.com/a/10855862)
# and ajdruff/fix-git-line-endings
# https://gist.github.com/ajdruff/16427061a41ca8c08c05992a6c74f59e
# Auto detect text files and perform LF normalization
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
# (Convert crlf => lf)
*.cs text diff=csharp
*.java text diff=java
*.html text diff=html
*.css text
*.js text
*.jsx text
*.yml text
*.sql text
*.md text
*.php text
*.json text
*.htm text
*.xml text
*.txt text
*.ini text
*.inc text
*.pl text
*.rb text
*.py text
*.scm text
.htaccess text
*.sh text
*.csproj text merge=union
*.sln text merge=union eol=crlf
*.docx diff=astextplain
*.DOCX diff=astextplain
# absolute paths are ok, as are globs
/**/postinst* text eol=lf
# paths that don't start with / are treated relative to the .gitattributes folder
relative/path/*.txt text eol=lf