summaryrefslogtreecommitdiff
path: root/source/luametatex/gitattributes.txt
blob: 39f435321180ec9116fd4434d08437433f8186c9 (plain)
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
###############################################################################
# 1. GLOBAL LINE ENDING RULES (Cross-Platform CRLF/LF Normalization)
###############################################################################

# Auto-detect text files and normalize line endings to LF in Git index.
# On checkout, Git will convert to native line endings (CRLF on Win, LF on Unix).
* text=auto

# Enforce LF for all source files across all platforms (Recommended for C/C++)

*.c       text eol=lf diff=cpp
*.h       text eol=lf diff=cpp
*.cpp     text eol=lf diff=cpp
*.hpp     text eol=lf diff=cpp
*.inc     text eol=lf diff=cpp

# Build scripts & Config files (Must be LF on POSIX)

*.sh           text eol=lf
*.mk           text eol=lf
Makefile       text eol=lf
CMakeLists.txt text eol=lf
.gitattributes text eol=lf
.gitignore     text eol=lf

# Windows specific scripts (Must keep CRLF)
*.bat     text eol=crlf
*.cmd     text eol=crlf
*.ps1     text eol=crlf

###############################################################################
# 2. DOCUMENTATION & SCRIPTING LANGUAGES (TeX, Lua, Web2C, Docs)
###############################################################################

*.tex     text eol=lf diff=tex
*.mkii    text eol=lf diff=tex
*.mkiv    text eol=lf diff=tex
*.mkvi    text eol=lf diff=tex
*.mkxl    text eol=lf diff=tex
*.mklx    text eol=lf diff=tex
*.lua     text eol=lf
*.lmt     text eol=lf
*.lfg     text eol=lf
*.llg     text eol=lf
*.md      text eol=lf
*.txt     text eol=lf

###############################################################################
# 3. BINARY FILES (Prevent corrupting executable/compiled assets)
###############################################################################

*.png     binary
*.jpg     binary
*.jpeg    binary
*.ico     binary
*.pdf     binary
*.ttf     binary
*.otf     binary
*.woff    binary
*.woff2   binary
*.fmt     binary
*.o       binary
*.a       binary
*.so      binary
*.dll     binary
*.exe     binary
*.zip     binary
*.tar.gz  binary

###############################################################################
# 4. ARCHIVE / EXPORT FILTERING
###############################################################################

# Exclude repository-only files when generating source archives (e.g. git archive)

.gitignore        export-ignore
.gitattributes    export-ignore
.github/          export-ignore
tests/            export-ignore