aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2017-07-05 20:25:54 +0200
committerHiltjo Posthuma <[email protected]>2017-07-05 20:25:54 +0200
commitdaf5185a576a9153394d4071abe26e4671cba045 (patch)
tree90206a9ecd8397e8af71e513a4fc0f3346b54961 /README
parent2e967c5baebafe41620da3979d02cba291745127 (diff)
downloadstagit-daf5185a576a9153394d4071abe26e4671cba045.tar.gz
stagit-daf5185a576a9153394d4071abe26e4671cba045.zip
README: add example to create tar.gz archives by tag
Diffstat (limited to 'README')
-rw-r--r--README11
1 files changed, 11 insertions, 0 deletions
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
--------