diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-21 18:34:58 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-21 18:34:58 +0100 |
commit | e4d3809161fc54d6913c0c2c7f6a7b51eebe223f (patch) | |
tree | 1eebc9f43a1302c537da84e9a7219918da131f45 /git/refs/reference.py | |
parent | e48e52001d5abad7b28a4ecadde63c78c3946339 (diff) | |
download | gitpython-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.py | 5 |
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 |