summaryrefslogtreecommitdiff
path: root/lib/git/refs.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-03 15:52:45 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-03 15:52:45 +0100
commitdbc18b92362f60afc05d4ddadd6e73902ae27ec7 (patch)
tree963e86880e5375a549910e9942e0064a37ddf33d /lib/git/refs.py
parent6bca9899b5edeed7f964e3124e382c3573183c68 (diff)
downloadgitpython-dbc18b92362f60afc05d4ddadd6e73902ae27ec7.tar.gz
repo: added create_* and delete_* methods for refs ( head, tag, remote ) as a convenient shortcut to using the classes manually
Diffstat (limited to 'lib/git/refs.py')
-rw-r--r--lib/git/refs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/refs.py b/lib/git/refs.py
index cea3e720..ddf98fc7 100644
--- a/lib/git/refs.py
+++ b/lib/git/refs.py
@@ -434,7 +434,7 @@ class Head(Reference):
_common_path_default = "refs/heads"
@classmethod
- def create(cls, repo, path, commit='HEAD', force=False, **kwargs ):
+ def create(cls, repo, path, commit='HEAD', force=False, **kwargs ):
"""
Create a new head.
``repo``
@@ -560,7 +560,7 @@ class TagReference(Reference):
@classmethod
def create(cls, repo, path, ref='HEAD', message=None, force=False, **kwargs):
"""
- Create a new tag object.
+ Create a new tag reference.
``path``
The name of the tag, i.e. 1.0 or releases/1.0.