From: Hiltjo Posthuma Date: Wed, 5 Jul 2017 18:25:54 +0000 (+0200) Subject: README: add example to create tar.gz archives by tag X-Git-Url: https://git.armaanb.net/?p=stagit.git;a=commitdiff_plain;h=daf5185a576a9153394d4071abe26e4671cba045 README: add example to create tar.gz archives by tag --- diff --git a/README b/README index b2bf8e8..c1d5ad4 100644 --- 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 --------