From 9ccd777c386704911734ae4c33a922a5682ac6c8 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 23 Nov 2010 16:32:43 +0100 Subject: Documentation is now being built for all new modules --- doc/source/tutorial.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/source/tutorial.rst') 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 ******************** -- cgit v1.2.1