-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitattributes
More file actions
75 lines (67 loc) · 1.66 KB
/
.gitattributes
File metadata and controls
75 lines (67 loc) · 1.66 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
# ---------------------------------------------------------------------
# Top-level .gitattributes for OpenSoundLab
# Normalises line endings and preserves binary assets
# ---------------------------------------------------------------------
# --- Default behaviour ---
# Automatically detect text files and normalise to LF in the repo
* text=auto eol=lf
# --- C# source code (Unity scripts) ---
*.cs text eol=lf
*.shader text eol=lf
# --- C and C++ source and headers ---
*.c text eol=lf
*.cpp text eol=lf
*.h text eol=lf
*.hpp text eol=lf
*.inl text eol=lf
# --- Project and config files ---
*.json text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.txt text eol=lf
*.md text eol=lf
*.xml text eol=lf
*.ini text eol=lf
*.cfg text eol=lf
*.meta text eol=lf
*.cginc text eol=lf
# --- Scripts that need CRLF on Windows (optional) ---
*.bat text eol=crlf
*.cmd text eol=crlf
# --- Binary assets: prevent newline conversion ---
# Unity / Audio / Image / 3D assets
*.png -text
*.jpg -text
*.jpeg -text
*.tga -text
*.bmp -text
*.psd -text
*.tif -text
*.tiff -text
*.mp3 -text
*.wav -text
*.ogg -text
*.fbx -text
*.prefab -text
*.unity -text
*.asset -text
*.cubemap -text
*.dll -text
*.so -text
*.pdb -text
*.exe -text
# --- Miscellaneous binaries ---
*.zip -text
*.tar -text
*.gz -text
*.7z -text
*.pdf -text
*.blend -text
*.bin -text
# --- Keep Git from messing with line endings in generated files ---
# (for any temp or cache folders)
[Ll]ibrary/** binary
[Tt]emp/** binary
[Bb]uild/** binary
[Bb]in/** binary
[Oo]bj/** binary