-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitattributes
More file actions
82 lines (72 loc) · 2.47 KB
/
.gitattributes
File metadata and controls
82 lines (72 loc) · 2.47 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Default behavior
* text=auto
# Windows-specific line endings
*.cmd text eol=crlf
*.bat text eol=crlf
# Unix-specific line endings
*.txt text eol=lf
*.toml text eol=lf
*.sql text eol=lf
*.sh text eol=lf
*.php text eol=lf filter=spaceonly
*.svg text eol=lf
# JSON and common code formats
*.json text eol=lf filter=tabspace
*.ts text eol=lf filter=tabspace
*.css text eol=lf filter=tabspace
*.scss text eol=lf filter=tabspace
*.js text eol=lf filter=tabspace
*.cjs text eol=lf filter=tabspace
*.java text eol=lf filter=tabspace
*.kt text eol=lf filter=tabspace
# XML and HTML (commonly use tab size 2)
*.xml text eol=lf filter=tabspace2
*.html text eol=lf filter=tabspace2
# Python (spaces preferred)
*.py text eol=lf filter=spaceonly
# Pre/Post commit hooks
pre-commit text eol=lf
post-commit text eol=lf
# Specific filters for spaces
*.spaceonly text eol=lf filter=spaceonly
*.csproj text eol=crlf filter=spaceonly
*.props text eol=crlf filter=spaceonly
*.vcxproj text eol=crlf filter=spaceonly
# Binary files
*.png binary diff
*.jpg binary diff
*.ico binary diff
*.pdf binary diff
*.ttf binary diff
*.woff binary diff
*.woff2 binary diff
*.otf binary diff
*.exe binary
# Large file support via Git LFS
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.mov filter=lfs diff=lfs merge=lfs -text
*.avi filter=lfs diff=lfs merge=lfs -text
*.mkv filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.ai filter=lfs diff=lfs merge=lfs -text
*.eps filter=lfs diff=lfs merge=lfs -text
*.db filter=lfs diff=lfs merge=lfs -text
*.bak filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.7z filter=lfs diff=lfs merge=lfs -text
*.mmdb filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.sqlite filter=lfs diff=lfs merge=lfs -text
# Special cases, run this to set up the merge driver:
# git config --local merge.resolve_hash.name "Resolve .husky/hash.txt with custom script"
# Then set the driver command based on your shell:
# bash: git config --local merge.resolve_hash.driver 'node bin/cfh.cjs %O %A %B'
# powershell: git config --local merge.resolve_hash.driver 'node bin/cfh.cjs %O %A %B'
# cmd.exe: git config --local merge.resolve_hash.driver "node bin/cfh.cjs %%O %%A %%B"
# To verify, run:
# git config --local --get-regexp '^merge'
# git check-attr --all -- .husky/hash.txt
.husky/hash.txt text eol=lf merge=resolve_hash