From 8f84e12218f19d5e70ce04c97701549d54e70a04 Mon Sep 17 00:00:00 2001 From: Tim Lingo <1timlingo@gmail.com> Date: Sun, 14 Jun 2026 15:36:54 -0500 Subject: [PATCH] chore(repo): suppress generated dist/ artifacts in diffs dist/*.c and *.elh are elc transpiler output. CI's header-gen step still greps dist/*.c, so they stay tracked, but a single soul change regenerates ~57k lines of dist/neuron.c + dist/soul.c that bury the real source diff and poison both human and agent PR review. Mark them -diff + linguist-generated so PRs show only the real changes. Build pipeline unchanged. --- .gitattributes | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..be532d2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,16 @@ +# ── Generated build artifacts ──────────────────────────────────────────────── +# dist/ holds elc transpiler output (*.c, *.elh) plus the generated decls header. +# CI consumes these (the "Generate ELP master declarations header" step greps +# dist/*.c), so they stay TRACKED. But they are machine-generated and must never +# bloat a review. A single soul change regenerates dist/neuron.c + dist/soul.c = +# ~57,000 lines of churn that buries the real ~few-hundred-line source diff and +# poisons both human review and the agent review pipeline. +# +# -diff → git emits "Binary files differ" instead of the text diff +# linguist-generated → Gitea collapses the file in the PR view + drops it from +# language stats +# +# Net effect: PRs show only the real .el/source changes; the build is untouched. +dist/** -diff linguist-generated +neuron-built -diff linguist-generated +dist/neuron -diff linguist-generated