aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-12-10 18:09:16 +0100
committerGuido Günther <agx@sigxcpu.org>2010-12-10 18:09:16 +0100
commit92d0e8358bed90fcb8a5df5d9751d8154c63f495 (patch)
tree2c8cfce19c25c750ceb117928c74ef777f19ab84 /gbp
parent37e97db91cd143f4c49539f926c2100bf2d50dc4 (diff)
Add move_tag
Git-Dch: ignore
Diffstat (limited to 'gbp')
-rw-r--r--gbp/git.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gbp/git.py b/gbp/git.py
index ff0ea79a..4ecbdd55 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -140,6 +140,11 @@ class GitRepository(object):
if self.has_tag(tag):
GitCommand("tag", [ "-d", tag ])()
+ def move_tag(self, old, new):
+ self.__check_path()
+ GitCommand("tag", [ new, old ])()
+ self.remove_tag(old)
+
def get_branch(self):
"""on what branch is the current working copy"""
self.__check_path()