stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit 3e32c3b36c8cb3cc6e3dfe7d1cf12aac40c3c44e parent db9f4da1b4100f0c8c09587315d8268f7231c9d8 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 5 Jul 2017 20:25:54 +0200 README: add example to create tar.gz archives by tag Diffstat:
| M | README | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/README b/README @@ -78,6 +78,17 @@ Script: }' +Create .tar.gz archives by tag +------------------------------ + #!/bin/sh + name="stagit" + mkdir -p archives + git tag -l | while read -r t; do + f="archives/$name-$t.tar.gz" + test -f "$f" || git archive --format tar.gz "$t" -o "$f" + done + + Features --------