@@ -3,10 +3,11 @@ References
3
3
**********************************************************************
4
4
5
5
.. 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
7
8
:noindex:
8
9
9
- .. attribute :: Repository. references
10
+ .. attribute :: references
10
11
11
12
Returns an instance of the References class (see below).
12
13
@@ -55,38 +56,27 @@ The Reference type
55
56
====================
56
57
57
58
.. autoclass :: pygit2.Reference
59
+ :members:
60
+ :special-members: __eq__, __ne__
61
+ :exclude-members: log
58
62
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
74
64
75
- Example::
65
+ Example::
76
66
77
- >>> branch = repository.references["refs/heads/master"]
78
- >>> branch.target = another_commit.id
79
- >>> committer = Signature('Cecil Committer', '[email protected] ')
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', '[email protected] ')
70
+ >>> branch.log_append(another_commit.id, committer,
71
+ "changed branch target using pygit2")
82
72
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::
84
74
85
- 7296b92 master@{10}: changed branch target using pygit2
75
+ 7296b92 master@{10}: changed branch target using pygit2
86
76
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.
90
80
91
81
92
82
The HEAD
0 commit comments