diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2009-04-14 20:59:06 +0300 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2009-04-14 20:59:06 +0300 |
commit | fd5f40c9032489be3db0c53eb97ca560bdea425b (patch) | |
tree | 13830057a5e3dab304873fb608d0801d31049674 /update_tags | |
parent | 5953f81b30b94c5c907aa75a54b6fc39afa2cad5 (diff) |
update_tags: update the list of tags from svn
Diffstat (limited to 'update_tags')
-rwxr-xr-x | update_tags | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/update_tags b/update_tags new file mode 100755 index 0000000..78675ee --- /dev/null +++ b/update_tags @@ -0,0 +1,9 @@ +#!/bin/sh + +git branch -r | grep 'tags/[0-9]' | sed -e 's"tags/\(.*\)"& v\1"' \ + | while read branch tag; do + if [ ! -r .git/refs/tags/$tag ]; then + echo "tagging $tag from $branch" + git tag $tag $branch + fi + done |