Skip to content

Commit 6156ffe

Browse files
committed
docs: changelog for git2@0.21
1 parent 19948b7 commit 6156ffe

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
### Added
77

8+
- Added experimental SHA256 repository support behind the new `unstable-sha256` Cargo feature,
9+
along with `*_ext` API variants that accept an `ObjectFormat`.
10+
[#1206](https://github.com/rust-lang/git2-rs/pull/1206)
811
- Added `opts::set_cache_max_size()` and `opts::get_cached_memory()`.
912
[#1188](https://github.com/rust-lang/git2-rs/pull/1188)
1013
- Added `Repository::object_format()` and a new `ObjectFormat` enum.
@@ -39,6 +42,12 @@
3942
[#1168](https://github.com/rust-lang/git2-rs/pull/1168)
4043
- ❗ Updated to the 2021 edition.
4144
[#1173](https://github.com/rust-lang/git2-rs/pull/1173)
45+
- ❗ Many string accessors that previously returned `Option<&str>` now return `Result<&str, Error>` (or `Result<Option<&str>, Error>`)
46+
so callers can distinguish a missing value from a non-UTF-8 one.
47+
[#1241](https://github.com/rust-lang/git2-rs/pull/1241)
48+
-`BlameHunk::final_signature`, `BlameHunk::final_committer`, `BlameHunk::orig_signature`, and `BlameHunk::orig_committer`
49+
now return `Option` to avoid segfaults when signature information is missing.
50+
[#1254](https://github.com/rust-lang/git2-rs/pull/1254)
4251
- `ReferenceNames` now returns an `Err` for non-UTF-8 branch names instead of panicking.
4352
[#1239](https://github.com/rust-lang/git2-rs/pull/1239)
4453
- Bumped requirement to libgit2-sys 0.18.4, which updates libgit2 to 1.9.3.
@@ -52,6 +61,9 @@
5261
[#1220](https://github.com/rust-lang/git2-rs/pull/1220)
5362
- `Reference::is_valid_name()` now propagates errors from `CString` conversion instead of panicking.
5463
[#1229](https://github.com/rust-lang/git2-rs/pull/1229)
64+
- Fixed `Remote::list()` to return an empty list instead of erroring
65+
when the remote advertises no refs.
66+
[#1250](https://github.com/rust-lang/git2-rs/pull/1250)
5567

5668
### Documentation
5769

@@ -81,6 +93,8 @@
8193
[#1245](https://github.com/rust-lang/git2-rs/pull/1245)
8294
- Added example showing retrieval of the latest commit for a file.
8395
[#1243](https://github.com/rust-lang/git2-rs/pull/1243)
96+
- Replaced comma with period in `CheckoutBuilder::refresh()` docs.
97+
[#1252](https://github.com/rust-lang/git2-rs/pull/1252)
8498

8599
### Internals
86100

@@ -102,6 +116,8 @@
102116
[#1244](https://github.com/rust-lang/git2-rs/pull/1244)
103117
- Added end-to-end test for stash count.
104118
[#1246](https://github.com/rust-lang/git2-rs/pull/1246)
119+
- Added end-to-end tests demonstrating use of `Repository::statuses()`.
120+
[#1251](https://github.com/rust-lang/git2-rs/pull/1251)
105121
- Internal refactors preparing for experimental SHA256 OID support.
106122
[#1201](https://github.com/rust-lang/git2-rs/pull/1201)
107123
[#1205](https://github.com/rust-lang/git2-rs/pull/1205)

0 commit comments

Comments
 (0)