Skip to content

Commit 2481c02

Browse files
committed
Changelog for future release
1 parent fd9d9d3 commit 2481c02

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

CHANGELOG.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
0.28.3 (UNRELEASED)
2+
-------------------------
3+
4+
- Support for "/" operator to traverse trees
5+
`#903 <https://github.com/libgit2/pygit2/pull/903>`_
6+
7+
- New `Index.remove_all()`
8+
`#920 <https://github.com/libgit2/pygit2/pull/920>`_
9+
10+
- New `Repository.lookup_reference_dwim(..)` and `Repository.resolve_refish(..)`
11+
`#922 <https://github.com/libgit2/pygit2/pull/922>`_
12+
13+
- Fix spurious exception in config
14+
`#916 <https://github.com/libgit2/pygit2/issues/916>`_
15+
`#917 <https://github.com/libgit2/pygit2/pull/917>`_
16+
17+
- Minor fixes
18+
`#919 <https://github.com/libgit2/pygit2/pull/919>`_
19+
`#921 <https://github.com/libgit2/pygit2/pull/921>`_
20+
21+
122
0.28.2 (2019-05-26)
223
-------------------------
324

docs/references.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
References
33
**********************************************************************
44

5-
.. py:attribute:: Repository.references
5+
.. autoclass:: pygit2.Repository
6+
:members: lookup_reference, lookup_reference_dwim, resolve_refish
7+
:noindex:
8+
9+
.. attribute:: Repository.references
10+
11+
Returns an instance of the References class (see below).
12+
613

714
.. autoclass:: pygit2.repository.References
815
:members:
@@ -13,7 +20,7 @@ Example::
1320

1421
>>> all_refs = list(repo.references)
1522

16-
>>> master_ref = repo.lookup_reference("refs/heads/master")
23+
>>> master_ref = repo.references["refs/heads/master"]
1724
>>> commit = master_ref.peel() # or repo[master_ref.target]
1825

1926
# Create a reference
@@ -64,7 +71,7 @@ The Reference type
6471

6572
Example::
6673

67-
>>> branch = repository.lookup_reference("refs/heads/master")
74+
>>> branch = repository.references["refs/heads/master"]
6875
>>> branch.target = another_commit.id
6976
>>> committer = Signature('Cecil Committer', 'cecil@committers.tld')
7077
>>> branch.log_append(another_commit.id, committer,
@@ -84,7 +91,7 @@ The HEAD
8491

8592
Example. These two lines are equivalent::
8693

87-
>>> head = repo.lookup_reference('HEAD').resolve()
94+
>>> head = repo.references['HEAD'].resolve()
8895
>>> head = repo.head
8996

9097
.. autoattribute:: pygit2.Repository.head

0 commit comments

Comments
 (0)