summaryrefslogtreecommitdiff
path: root/git/refs/symbolic.py
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2014-11-16 20:51:04 +0100
committerAntoine Musso <hashar@free.fr>2014-11-16 20:51:21 +0100
commitbe34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6 (patch)
tree7d0124054760421d95a6f675d8e843e42a72ad82 /git/refs/symbolic.py
parentf5d11b750ecc982541d1f936488248f0b42d75d3 (diff)
downloadgitpython-be34ec23c48d6d5d8fd2ef4491981f6fb4bab8e6.tar.gz
pep8 linting (blank lines expectations)
E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
Diffstat (limited to 'git/refs/symbolic.py')
-rw-r--r--git/refs/symbolic.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py
index 7a4bf59b..6832b8f2 100644
--- a/git/refs/symbolic.py
+++ b/git/refs/symbolic.py
@@ -23,7 +23,9 @@ from log import RefLog
__all__ = ["SymbolicReference"]
+
class SymbolicReference(object):
+
"""Represents a special case of a reference such that this reference is symbolic.
It does not point to a specific commit, but to another Head, which itself
specifies a commit.
@@ -204,7 +206,6 @@ class SymbolicReference(object):
return self
-
def set_object(self, object, logmsg = None):
"""Set the object we point to, possibly dereference our symbolic reference first.
If the reference does not exist, it will be created
@@ -309,7 +310,6 @@ class SymbolicReference(object):
return self
-
# aliased reference
reference = property(_get_reference, set_reference, doc="Returns the Reference we point to")
ref = reference
@@ -441,7 +441,6 @@ class SymbolicReference(object):
os.remove(reflog_path)
#END remove reflog
-
@classmethod
def _create(cls, repo, path, resolve, reference, force, logmsg=None):
"""internal method used to create a new symbolic reference.