@@ -3,10 +3,11 @@ References
33**********************************************************************
44
55.. autoclass :: pygit2.Repository
6- :members: lookup_reference, lookup_reference_dwim, resolve_refish
6+ :members: lookup_reference, lookup_reference_dwim, raw_listall_references,
7+ resolve_refish
78 :noindex:
89
9- .. attribute :: Repository. references
10+ .. attribute :: references
1011
1112 Returns an instance of the References class (see below).
1213
@@ -55,38 +56,27 @@ The Reference type
5556====================
5657
5758.. autoclass :: pygit2.Reference
59+ :members:
60+ :special-members: __eq__, __ne__
61+ :exclude-members: log
5862
59- .. autoattribute :: pygit2.Reference.name
60- .. autoattribute :: pygit2.Reference.raw_name
61- .. autoattribute :: pygit2.Reference.shorthand
62- .. autoattribute :: pygit2.Reference.raw_shorthand
63- .. autoattribute :: pygit2.Reference.target
64- .. autoattribute :: pygit2.Reference.type
65-
66- .. automethod :: pygit2.Reference.__eq__(Reference)
67- .. automethod :: pygit2.Reference.__ne__(Reference)
68- .. automethod :: pygit2.Reference.set_target
69- .. automethod :: pygit2.Reference.delete
70- .. automethod :: pygit2.Reference.rename
71- .. automethod :: pygit2.Reference.resolve
72- .. automethod :: pygit2.Reference.peel
73- .. automethod :: pygit2.Reference.log
63+ .. automethod :: log
7464
75- Example::
65+ Example::
7666
77- >>> branch = repository.references["refs/heads/master"]
78- >>> branch.target = another_commit.id
79- >>> committer = Signature('Cecil Committer', 'cecil@committers.tld')
80- >>> branch.log_append(another_commit.id, committer,
81- "changed branch target using pygit2")
67+ >>> branch = repository.references["refs/heads/master"]
68+ >>> branch.target = another_commit.id
69+ >>> committer = Signature('Cecil Committer', 'cecil@committers.tld')
70+ >>> branch.log_append(another_commit.id, committer,
71+ "changed branch target using pygit2")
8272
83- This creates a reflog entry in ``git reflog master `` which looks like::
73+ This creates a reflog entry in ``git reflog master `` which looks like::
8474
85- 7296b92 master@{10}: changed branch target using pygit2
75+ 7296b92 master@{10}: changed branch target using pygit2
8676
87- In order to make an entry in ``git reflog ``, ie. the reflog for ``HEAD ``, you
88- have to get the Reference object for ``HEAD `` and call ``log_append `` on
89- that.
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.
9080
9181
9282The HEAD
0 commit comments