-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitattributes
More file actions
33 lines (29 loc) · 1.11 KB
/
Copy pathgitattributes
File metadata and controls
33 lines (29 loc) · 1.11 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
# =============================================================================
# Chat Archive — Git Line Ending Normalization
# =============================================================================
# Ensures consistent line endings across Mac and Windows dev machines.
# All text files are stored as LF in the repo (Unix standard).
# Windows machines will checkout with CRLF locally (handled by Git automatically).
# This eliminates noisy diffs caused by LF/CRLF differences between machines.
#
# Rule: text=auto lets Git detect text files and normalize them.
# Explicit overrides below handle specific file types we care about.
# Default: normalize all text files to LF in repo
* text=auto
# Source files — always LF
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
*.html text eol=lf
*.css text eol=lf
*.sh text eol=lf
# Shell scripts — LF required or they break on Mac/Linux
build.sh text eol=lf
# Binary files — no line ending conversion
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.zip binary
*.crx binary