Skip to content

Commit fa7732b

Browse files
committed
docs: prepare changelog for git2@0.21.0
Release date will be finalized later before publish
1 parent c8a9e88 commit fa7732b

1 file changed

Lines changed: 106 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,111 @@
11
# Changelog
22

3+
## 0.21.0 - TBD
4+
[0.20.4...main](https://github.com/rust-lang/git2-rs/compare/git2-0.20.4...main)
5+
6+
### Added
7+
8+
- Added `opts::set_cache_max_size()` and `opts::get_cached_memory()`.
9+
[#1188](https://github.com/rust-lang/git2-rs/pull/1188)
10+
- Added `Repository::object_format()` and a new `ObjectFormat` enum.
11+
[#1204](https://github.com/rust-lang/git2-rs/pull/1204)
12+
- Added `Repository::set_config()`.
13+
[#1208](https://github.com/rust-lang/git2-rs/pull/1208)
14+
- Added `merge_file()` along with `MergeFileInput`.
15+
[#1210](https://github.com/rust-lang/git2-rs/pull/1210)
16+
- Added `Repository::refdb_compress()` for packing loose refs.
17+
[#1221](https://github.com/rust-lang/git2-rs/pull/1221)
18+
- Added public `Refdb` type, along with `Repository::refdb()` and `Repository::set_refdb()`. `Repository::refdb_compress()` now delegates to `Refdb::compress()`.
19+
[#1228](https://github.com/rust-lang/git2-rs/pull/1228)
20+
- Added `Revspec::into_objects()`.
21+
[#1230](https://github.com/rust-lang/git2-rs/pull/1230)
22+
- Added `BlameHunk::final_committer()`, `BlameHunk::orig_committer()`, `BlameHunk::summary()`, and `BlameHunk::summary_bytes()`.
23+
[#1231](https://github.com/rust-lang/git2-rs/pull/1231)
24+
- Implemented `Clone` for `Reference`.
25+
[#1233](https://github.com/rust-lang/git2-rs/pull/1233)
26+
- Added `Repository::author_from_env()` and `Repository::committer_from_env()`.
27+
[#1237](https://github.com/rust-lang/git2-rs/pull/1237)
28+
- Added `impl From<Utf8Error> for Error`.
29+
[#1239](https://github.com/rust-lang/git2-rs/pull/1239)
30+
31+
### Changed
32+
33+
- ❗ The `ssh`, `https`, and `cred` Cargo features are no longer enabled by default.
34+
Previously `default = ["ssh", "https"]`; now `default = []`.
35+
Enable them explicitly if you rely on credential helpers or transport support.
36+
[#1168](https://github.com/rust-lang/git2-rs/pull/1168)
37+
-`CredentialHelper` and the `url` dependency are now gated behind the new `cred` Cargo feature.
38+
Enabling `ssh` or `https` transitively enables `cred`.
39+
[#1168](https://github.com/rust-lang/git2-rs/pull/1168)
40+
- ❗ Updated to the 2021 edition.
41+
[#1173](https://github.com/rust-lang/git2-rs/pull/1173)
42+
- `ReferenceNames` now returns an `Err` for non-UTF-8 branch names instead of panicking.
43+
[#1239](https://github.com/rust-lang/git2-rs/pull/1239)
44+
- Bumped requirement to libgit2-sys 0.18.4, which updates libgit2 to 1.9.3.
45+
[#1242](https://github.com/rust-lang/git2-rs/pull/1242)
46+
47+
### Fixed
48+
49+
- Fixed `MergeOptions::skip_reuc()` to use the correct `GIT_MERGE_SKIP_REUC` flag.
50+
[#1194](https://github.com/rust-lang/git2-rs/pull/1194)
51+
- `Repository::submodules()` now returns an `Error` when the underlying `git_submodule_lookup()` call to libgit2 fails, rather than panicking with a failed assertion.
52+
[#1220](https://github.com/rust-lang/git2-rs/pull/1220)
53+
- `Reference::is_valid_name()` now propagates errors from `CString` conversion instead of panicking.
54+
[#1229](https://github.com/rust-lang/git2-rs/pull/1229)
55+
56+
### Documentation
57+
58+
- Added note regarding potentially confusing behavior of `git_checkout_head`.
59+
[#1149](https://github.com/rust-lang/git2-rs/pull/1149)
60+
- Added comments describing the `IndexAddOption` flags.
61+
[#1163](https://github.com/rust-lang/git2-rs/pull/1163)
62+
- Updated README note about the `ssh` feature.
63+
[#1187](https://github.com/rust-lang/git2-rs/pull/1187)
64+
- Improved function docs for `Repository::tag_foreach()`.
65+
[#1190](https://github.com/rust-lang/git2-rs/pull/1190)
66+
- Fixed doc comment typo in `StatusOptions`.
67+
[#1199](https://github.com/rust-lang/git2-rs/pull/1199)
68+
- Fixed missing period in module documentation.
69+
[#1219](https://github.com/rust-lang/git2-rs/pull/1219)
70+
- Small wording fix in `Signature::from_raw_const()` docs.
71+
[#1222](https://github.com/rust-lang/git2-rs/pull/1222)
72+
- Replaced discussion of missing gist in README.
73+
[#1223](https://github.com/rust-lang/git2-rs/pull/1223)
74+
- Documented the bitflag methods for checking flags.
75+
[#1224](https://github.com/rust-lang/git2-rs/pull/1224)
76+
- Clarified `CheckoutBuilder::update_index()` documentation.
77+
[#1232](https://github.com/rust-lang/git2-rs/pull/1232)
78+
- Added more missing documentation.
79+
[#1235](https://github.com/rust-lang/git2-rs/pull/1235)
80+
- Fixed typo in `Repository::stash_save_ext()` docs.
81+
[#1245](https://github.com/rust-lang/git2-rs/pull/1245)
82+
- Added example showing retrieval of the latest commit for a file.
83+
[#1243](https://github.com/rust-lang/git2-rs/pull/1243)
84+
85+
### Internals
86+
87+
- Dropped `civet`/`conduit` from dev-dependencies.
88+
[#1170](https://github.com/rust-lang/git2-rs/pull/1170)
89+
- Updated dependencies.
90+
[#1171](https://github.com/rust-lang/git2-rs/pull/1171)
91+
- Fixed lockfile verification in CI.
92+
[#1177](https://github.com/rust-lang/git2-rs/pull/1177)
93+
- Updated CI and documentation to cover feature combinations.
94+
[#1182](https://github.com/rust-lang/git2-rs/pull/1182)
95+
- Listed all examples that may need HTTP and SSH.
96+
[#1196](https://github.com/rust-lang/git2-rs/pull/1196)
97+
- Allowed publishing from any ref in the publish workflow.
98+
[#1198](https://github.com/rust-lang/git2-rs/pull/1198)
99+
- Bumped `time` from 0.3.41 to 0.3.47.
100+
[#1215](https://github.com/rust-lang/git2-rs/pull/1215)
101+
- Added end-to-end test for branch name on initialization.
102+
[#1244](https://github.com/rust-lang/git2-rs/pull/1244)
103+
- Added end-to-end test for stash count.
104+
[#1246](https://github.com/rust-lang/git2-rs/pull/1246)
105+
- Internal refactors preparing for experimental SHA256 OID support.
106+
[#1201](https://github.com/rust-lang/git2-rs/pull/1201)
107+
[#1205](https://github.com/rust-lang/git2-rs/pull/1205)
108+
3109
## 0.20.4 - 2026-02-02
4110
[0.20.3...0.20.4](https://github.com/rust-lang/git2-rs/compare/git2-0.20.3...git2-0.20.4)
5111

0 commit comments

Comments
 (0)