summaryrefslogtreecommitdiff
path: root/doc/source/tutorial.rst
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-23 16:32:43 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-23 16:32:43 +0100
commit9ccd777c386704911734ae4c33a922a5682ac6c8 (patch)
tree1e2ebda56c510846dffa126c581031c60322fa78 /doc/source/tutorial.rst
parent8ad01ee239f9111133e52af29b78daed34c52e49 (diff)
downloadgitpython-9ccd777c386704911734ae4c33a922a5682ac6c8.tar.gz
Documentation is now being built for all new modules
Diffstat (limited to 'doc/source/tutorial.rst')
-rw-r--r--doc/source/tutorial.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst
index 9aadae47..642136ab 100644
--- a/doc/source/tutorial.rst
+++ b/doc/source/tutorial.rst
@@ -88,6 +88,14 @@ A symbolic reference is a special case of a reference as it points to another re
head = repo.head # the head points to the active branch/ref
master = head.reference # retrieve the reference the head points to
master.commit # from here you use it as any other reference
+
+Access the reflog easily::
+
+ log = master.log()
+ log[0] # first (i.e. oldest) reflog entry
+ log[-1] # last (i.e. most recent) reflog entry
+
+For more information on the reflog, see the ``RefLog`` type's documentation.
Modifying References
********************