From e4d3809161fc54d6913c0c2c7f6a7b51eebe223f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 21 Jan 2015 18:34:58 +0100 Subject: 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 --- git/refs/reference.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git/refs/reference.py') 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 -- cgit v1.2.1