]> git.kaiwu.me - njs.git/commitdiff
Exclude development files from source archives
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 11 Aug 2026 01:55:16 +0000 (18:55 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 13 Aug 2026 16:09:25 +0000 (09:09 -0700)
Add .gitattributes with "export-ignore" attributes, so that agent
instructions, CI configuration and the release machinery are not part
of the tarballs created by "git archive", including the ones GitHub
generates for a tag.

.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..b80628c
--- /dev/null
@@ -0,0 +1,10 @@
+# The files below are development infrastructure, they are excluded
+# from source archives created by "git archive", see misc/GNUmakefile.
+
+/.gitattributes export-ignore
+/.github        export-ignore
+/.gitignore     export-ignore
+/AGENTS.md      export-ignore
+/CLAUDE.md      export-ignore
+/docs/agent     export-ignore
+/misc           export-ignore