aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@posteo.com>2025-05-10 11:03:11 +0200
committerIvan Molodetskikh <yalterz@gmail.com>2025-05-17 04:29:46 -0700
commitd8265ad34e3f5d21002810b6727d4badffb8d21c (patch)
treea49d272912773d03887e76f78fc36737a5dc6f8d
parent3b864dc104797c21d7fe1582e4b8bdee8f236ea4 (diff)
downloadniri-d8265ad34e3f5d21002810b6727d4badffb8d21c.tar.gz
niri-d8265ad34e3f5d21002810b6727d4badffb8d21c.tar.bz2
niri-d8265ad34e3f5d21002810b6727d4badffb8d21c.zip
Stop including broken LFS files in source tarball
-rw-r--r--.gitattributes11
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 24a8e879..710a2b95 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1,12 @@
+# LFS configuration for images from the wiki
*.png filter=lfs diff=lfs merge=lfs -text
+
+# Exclude LFS-tracked files from the tarball
+/wiki/img/ export-ignore
+
+# exclude .gitattributes itself from the tarball
+.gitattributes export-ignore
+
+# tip: can be tested using
+# git archive --format=tar.gz --output=source.tar.gz HEAD && \
+# tar tfvz source.tar.gz | grep -e '.png' -e '.gitattributes'