|
1 | | -# Auto detect text files and perform LF normalization |
2 | | -* text=auto eol=lf |
3 | | - |
4 | | -# Go source files |
5 | | -*.go text eol=lf diff=golang |
6 | | - |
7 | | -# Shell scripts |
8 | | -*.sh text eol=lf |
| 1 | +# Canonical eco-wide .gitattributes template (.shared-templates/gitattributes.tmpl). |
| 2 | +# Auto-detect text files and normalise line endings to LF. |
9 | 3 |
|
10 | | -# Makefiles |
11 | | -Makefile text eol=lf |
| 4 | +* text=auto eol=lf |
12 | 5 |
|
13 | | -# Documentation |
14 | | -*.md text eol=lf diff=markdown |
15 | | -*.txt text eol=lf |
| 6 | +# --- Source code ----------------------------------------------------------- |
| 7 | +*.go text eol=lf diff=golang |
| 8 | +*.py text eol=lf diff=python |
| 9 | +*.ts text eol=lf |
| 10 | +*.tsx text eol=lf |
| 11 | +*.js text eol=lf |
| 12 | +*.jsx text eol=lf |
| 13 | +*.mjs text eol=lf |
| 14 | +*.cjs text eol=lf |
| 15 | +*.rs text eol=lf diff=rust |
16 | 16 |
|
17 | | -# Config files |
18 | | -*.toml text eol=lf |
19 | | -*.yaml text eol=lf |
20 | | -*.yml text eol=lf |
21 | | -*.json text eol=lf linguist-language=JSON |
22 | | -*.cff text eol=lf |
| 17 | +# --- Shell + config -------------------------------------------------------- |
| 18 | +*.sh text eol=lf |
| 19 | +*.bash text eol=lf |
| 20 | +*.toml text eol=lf |
| 21 | +*.yaml text eol=lf |
| 22 | +*.yml text eol=lf |
| 23 | +*.json text eol=lf linguist-language=JSON |
| 24 | +*.jsonc text eol=lf linguist-language=JSON |
| 25 | +*.cff text eol=lf |
23 | 26 |
|
24 | | -# Go module files |
25 | | -go.mod text eol=lf linguist-generated |
26 | | -go.sum text eol=lf linguist-generated |
| 27 | +# --- Documentation --------------------------------------------------------- |
| 28 | +*.md text eol=lf diff=markdown |
| 29 | +*.txt text eol=lf |
27 | 30 |
|
28 | | -# Docker |
29 | | -Dockerfile text eol=lf |
| 31 | +# --- Build / packaging ---------------------------------------------------- |
| 32 | +Makefile text eol=lf |
| 33 | +*.mk text eol=lf |
| 34 | +Dockerfile* text eol=lf |
30 | 35 | docker-compose*.yml text eol=lf |
| 36 | +.github/**/*.yml text eol=lf |
| 37 | +.github/**/*.yaml text eol=lf |
31 | 38 |
|
32 | | -# GitHub Actions |
33 | | -.github/**/*.yml text eol=lf |
34 | | - |
35 | | -# Binary files |
36 | | -*.exe binary |
37 | | -*.dll binary |
38 | | -*.so binary |
39 | | -*.dylib binary |
40 | | -*.db binary |
41 | | -*.sqlite binary |
42 | | -*.png binary |
43 | | -*.jpg binary |
44 | | -*.jpeg binary |
45 | | -*.gif binary |
46 | | -*.ico binary |
47 | | -*.pdf binary |
48 | | -*.zip binary |
49 | | -*.tar.gz binary |
50 | | -*.tgz binary |
| 39 | +# --- Generated artefacts (mark as such for diffs and language stats) ------ |
| 40 | +go.mod text eol=lf linguist-generated |
| 41 | +go.sum text eol=lf linguist-generated |
| 42 | +*.pb.go linguist-generated |
| 43 | +*_generated.go linguist-generated |
| 44 | +package-lock.json linguist-generated |
| 45 | +pnpm-lock.yaml linguist-generated |
| 46 | +yarn.lock linguist-generated |
51 | 47 |
|
52 | | -# Test data |
53 | | -tests/testdata/** linguist-vendored |
| 48 | +# --- Vendored / external sources ------------------------------------------ |
| 49 | +vendor/** linguist-vendored |
| 50 | +node_modules/** linguist-vendored |
| 51 | +testdata/** linguist-vendored |
54 | 52 | benchmarks/data/** linguist-vendored |
55 | | -OSS-REF/** linguist-vendored |
56 | | - |
57 | | -# Vendor (if used) |
58 | | -vendor/** linguist-vendored |
59 | 53 |
|
60 | | -# Generated files |
61 | | -*_generated.go linguist-generated |
62 | | -*.pb.go linguist-generated |
| 54 | +# --- Binary files (do not text-normalise) --------------------------------- |
| 55 | +*.exe binary |
| 56 | +*.dll binary |
| 57 | +*.so binary |
| 58 | +*.dylib binary |
| 59 | +*.a binary |
| 60 | +*.o binary |
| 61 | +*.db binary |
| 62 | +*.sqlite binary |
| 63 | +*.png binary |
| 64 | +*.jpg binary |
| 65 | +*.jpeg binary |
| 66 | +*.gif binary |
| 67 | +*.ico binary |
| 68 | +*.svg text eol=lf |
| 69 | +*.pdf binary |
| 70 | +*.zip binary |
| 71 | +*.tar.gz binary |
| 72 | +*.tgz binary |
| 73 | +*.whl binary |
63 | 74 |
|
64 | | -# Export ignore (not included in source archives) |
65 | | -.github export-ignore |
66 | | -.gitattributes export-ignore |
67 | | -.gitignore export-ignore |
68 | | -.editorconfig export-ignore |
69 | | -.golangci.yml export-ignore |
70 | | -OSS-REF/ export-ignore |
71 | | -benchmarks/ export-ignore |
72 | | -tests/ export-ignore |
73 | | -docs/DEEP_COMPETITIVE_ANALYSIS.md export-ignore |
74 | | -docs/COMPREHENSIVE_OSS_COMPETITORS.md export-ignore |
75 | | -docs/COMPETITOR_SUMMARY.md export-ignore |
76 | | -MASTER_TASK_LIST.md export-ignore |
| 75 | +# --- Source archive hygiene (excluded from `git archive`) ----------------- |
| 76 | +.github export-ignore |
| 77 | +.shared-templates export-ignore |
| 78 | +.gitattributes export-ignore |
| 79 | +.gitignore export-ignore |
| 80 | +.editorconfig export-ignore |
| 81 | +.golangci.yml export-ignore |
| 82 | +.goreleaser.yml export-ignore |
| 83 | +.goreleaser.yaml export-ignore |
| 84 | +testdata/ export-ignore |
| 85 | +benchmarks/ export-ignore |
| 86 | +e2e/ export-ignore |
0 commit comments