-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.gitattributes
More file actions
46 lines (40 loc) · 1.21 KB
/
Copy path.gitattributes
File metadata and controls
46 lines (40 loc) · 1.21 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
# Treat genuine binaries as binary.
#
# Without this git tries to diff them as text. PolyKybd-Schematics.pdf alone
# renders as ~1.35 million lines of "changed text" on every regeneration, which
# bloats diffs, slows git and makes review output useless. Marking them binary
# makes git report "Bin <old> -> <new> bytes" instead.
#
# This affects diff/merge behaviour only - it does not change how objects are
# stored, so it neither shrinks nor grows the repository.
# Documents
*.pdf binary
*.docx binary
*.xls binary
*.xlsx binary
*.ods binary
# Images
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
# 3D and mechanical
*.stl binary
*.step binary
*.stp binary
*.wrl binary
*.3dshapes binary
# Archives and fabrication output
*.zip binary
*.7z binary
*.gz binary
# KiCad sources are text and diff usefully - left alone deliberately:
# *.kicad_pcb, *.kicad_sch, *.kicad_sym, *.kicad_mod, *.kicad_pro,
# *.gbr/.gtl/.gbl/.drl and the CSV exports.
# They are large, but a readable diff on them has repeatedly been the thing
# that caught mistakes, so they stay text.
# Normalise line endings for the text formats we do hand-edit.
*.md text
*.py text
*.sh text eol=lf