Documentation is now being built for all new modules · gitpython-developers/GitPython@9ccd777

Original file line numberDiff line numberDiff line change

@@ -88,6 +88,14 @@ A symbolic reference is a special case of a reference as it points to another re

8888

head = repo.head # the head points to the active branch/ref

8989

master = head.reference # retrieve the reference the head points to

9090

master.commit # from here you use it as any other reference

91+
92+

Access the reflog easily::

93+
94+

log = master.log()

95+

log[0] # first (i.e. oldest) reflog entry

96+

log[-1] # last (i.e. most recent) reflog entry

97+
98+

For more information on the reflog, see the ``RefLog`` type's documentation.

9199
92100

Modifying References

93101

********************