From dbc18b92362f60afc05d4ddadd6e73902ae27ec7 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 3 Nov 2009 15:52:45 +0100 Subject: repo: added create_* and delete_* methods for refs ( head, tag, remote ) as a convenient shortcut to using the classes manually --- lib/git/refs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/git/refs.py') 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. -- cgit v1.2.1