summaryrefslogtreecommitdiff
path: root/git/refs/reference.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-21 18:34:58 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-21 18:34:58 +0100
commite4d3809161fc54d6913c0c2c7f6a7b51eebe223f (patch)
tree1eebc9f43a1302c537da84e9a7219918da131f45 /git/refs/reference.py
parente48e52001d5abad7b28a4ecadde63c78c3946339 (diff)
downloadgitpython-e4d3809161fc54d6913c0c2c7f6a7b51eebe223f.tar.gz
Added advance usage examples to tutorial and made minor fixes.
GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
Diffstat (limited to 'git/refs/reference.py')
-rw-r--r--git/refs/reference.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/git/refs/reference.py b/git/refs/reference.py
index 8741ebb9..3e132aef 100644
--- a/git/refs/reference.py
+++ b/git/refs/reference.py
@@ -51,7 +51,8 @@ class Reference(SymbolicReference, LazyMixin, Iterable):
#{ Interface
def set_object(self, object, logmsg=None):
- """Special version which checks if the head-log needs an update as well"""
+ """Special version which checks if the head-log needs an update as well
+ :return: self"""
oldbinsha = None
if logmsg is not None:
head = self.repo.head
@@ -78,6 +79,8 @@ class Reference(SymbolicReference, LazyMixin, Iterable):
self.repo.head.log_append(oldbinsha, logmsg)
# END check if the head
+ return self
+
# NOTE: Don't have to overwrite properties as the will only work without a the log
@property