We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e92361d + 0693712 commit 8b629d4Copy full SHA for 8b629d4
doc/api/references.rst
@@ -23,11 +23,11 @@ If you want to access all branches or all tags:
23
24
.. code-block:: php
25
26
- $branches = $repository->getBranches();
27
- $localBranches = $repository->getLocalBranches();
28
- $remoteBranches = $repository->getRemoteBranches();
29
- $tags = $repository->getTags();
30
- $all = $repository->getAll();
+ $branches = $references->getBranches();
+ $localBranches = $references->getLocalBranches();
+ $remoteBranches = $references->getRemoteBranches();
+ $tags = $references->getTags();
+ $all = $references->getAll();
31
32
To get a given branch or tag, call *getBranch* or *getTag* on the
33
*ReferenceBag*. Those methods return *Branch* and *Tag* objects:
0 commit comments