|
5 | 5 |
|
6 | 6 | ### Added |
7 | 7 |
|
| 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) |
8 | 11 | - Added `opts::set_cache_max_size()` and `opts::get_cached_memory()`. |
9 | 12 | [#1188](https://github.com/rust-lang/git2-rs/pull/1188) |
10 | 13 | - Added `Repository::object_format()` and a new `ObjectFormat` enum. |
|
39 | 42 | [#1168](https://github.com/rust-lang/git2-rs/pull/1168) |
40 | 43 | - ❗ Updated to the 2021 edition. |
41 | 44 | [#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) |
42 | 51 | - `ReferenceNames` now returns an `Err` for non-UTF-8 branch names instead of panicking. |
43 | 52 | [#1239](https://github.com/rust-lang/git2-rs/pull/1239) |
44 | 53 | - Bumped requirement to libgit2-sys 0.18.4, which updates libgit2 to 1.9.3. |
|
52 | 61 | [#1220](https://github.com/rust-lang/git2-rs/pull/1220) |
53 | 62 | - `Reference::is_valid_name()` now propagates errors from `CString` conversion instead of panicking. |
54 | 63 | [#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) |
55 | 67 |
|
56 | 68 | ### Documentation |
57 | 69 |
|
|
81 | 93 | [#1245](https://github.com/rust-lang/git2-rs/pull/1245) |
82 | 94 | - Added example showing retrieval of the latest commit for a file. |
83 | 95 | [#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) |
84 | 98 |
|
85 | 99 | ### Internals |
86 | 100 |
|
|
102 | 116 | [#1244](https://github.com/rust-lang/git2-rs/pull/1244) |
103 | 117 | - Added end-to-end test for stash count. |
104 | 118 | [#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) |
105 | 121 | - Internal refactors preparing for experimental SHA256 OID support. |
106 | 122 | [#1201](https://github.com/rust-lang/git2-rs/pull/1201) |
107 | 123 | [#1205](https://github.com/rust-lang/git2-rs/pull/1205) |
|
0 commit comments