-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitattributes
More file actions
60 lines (50 loc) · 1.57 KB
/
.gitattributes
File metadata and controls
60 lines (50 loc) · 1.57 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
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
# Auto detect text files and perform LF normalization
* text=auto eol=lf
# Documents
*.md text diff=markdown whitespace=trailing-space,space-before-tab,blank-at-eol
*.txt text whitespace=trailing-space,space-before-tab,blank-at-eol
# Scripts
*.sh text eol=lf whitespace=trailing-space,space-before-tab,blank-at-eol
*.py text eol=lf whitespace=trailing-space,space-before-tab,blank-at-eol
# Configs
*.config text eol=lf whitespace=trailing-space,space-before-tab,blank-at-eol
*.json text eol=lf whitespace=trailing-space,space-before-tab,blank-at-eol
# Don't modify binary files
*.iso binary
*.qcow2 binary
*.img binary
# Normalize line endings for specific text file types
*.c text eol=lf
*.cpp text eol=lf
*.h text eol=lf
*.sh text eol=lf
*.py text eol=lf
*.java text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.html text eol=lf
*.css text eol=lf
*.xml text eol=lf
*.md text eol=lf
# Prevent Git from modifying binary files
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.pdf binary
*.mp4 binary
*.mp3 binary
*.zip binary
*.tar.gz binary
# Ignore trailing whitespace on diff
#* -diff
# Handle Windows Batch files and PowerShell scripts correctly
*.bat text eol=crlf
*.ps1 text eol=lf
# Make shell scripts executable on Unix-like systems
*.sh text eol=lf diff=auto
# Apply extra whitespace checks for certain files
*.c whitespace=trailing-space,space-before-tab
*.h whitespace=trailing-space,space-before-tab
*.cpp whitespace=trailing-space,space-before-tab