Skip to content

Commit c2331d9

Browse files
committed
Remove outdated log_append example
1 parent 7999f77 commit c2331d9

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

docs/references.rst

-17
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,6 @@ The Reference type
6262

6363
.. automethod:: log
6464

65-
Example::
66-
67-
>>> branch = repository.references["refs/heads/master"]
68-
>>> branch.target = another_commit.id
69-
>>> committer = Signature('Cecil Committer', '[email protected]')
70-
>>> branch.log_append(another_commit.id, committer,
71-
"changed branch target using pygit2")
72-
73-
This creates a reflog entry in ``git reflog master`` which looks like::
74-
75-
7296b92 master@{10}: changed branch target using pygit2
76-
77-
In order to make an entry in ``git reflog``, ie. the reflog for ``HEAD``, you
78-
have to get the Reference object for ``HEAD`` and call ``log_append`` on
79-
that.
80-
81-
8265
The HEAD
8366
====================
8467

0 commit comments

Comments
 (0)