aboutsummaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 10:30:33 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-29 10:30:33 +0200
commit00b51e3292062f52a4699440cb36b3aa337dbd17 (patch)
treec887cd96eaaef06691c846dbbbfe9be81a1ca6a3 /.gitattributes
parent8d7d3ac6f2b365342aa25ecb31f8e76d18090a22 (diff)
downloadclectio-00b51e3292062f52a4699440cb36b3aa337dbd17.tar.gz
clectio-00b51e3292062f52a4699440cb36b3aa337dbd17.zip
build: add `make dist` source-tarball target + .gitattributes export-ignore
- `make dist` runs git archive to write clectio-$(VERSION).tar.gz: a snapshot of the committed tree only -- no .git history, and no build artifacts (they are untracked, so git archive can't include them). VERSION defaults to 1.0, overridable (make dist VERSION=x). `clean` removes the tarball; it is gitignored. - .gitattributes marks .gitignore and .gitattributes export-ignore, so they stay out of the shipped source tarball. Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..53546c6
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,3 @@
+# Keep repo-only metadata out of `make dist` / `git archive` source tarballs.
+.gitignore export-ignore
+.gitattributes export-ignore