| 1 |
# Changelog |
| 2 |
|
| 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 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) |
| 11 |
- Added `opts::set_cache_max_size()` and `opts::get_cached_memory()`. |
| 12 |
[#1188](https://github.com/rust-lang/git2-rs/pull/1188) |
| 13 |
- Added `Repository::object_format()` and a new `ObjectFormat` enum. |
| 14 |
[#1204](https://github.com/rust-lang/git2-rs/pull/1204) |
| 15 |
- Added `Repository::set_config()`. |
| 16 |
[#1208](https://github.com/rust-lang/git2-rs/pull/1208) |
| 17 |
- Added `merge_file()` along with `MergeFileInput`. |
| 18 |
[#1210](https://github.com/rust-lang/git2-rs/pull/1210) |
| 19 |
- Added `Repository::refdb_compress()` for packing loose refs. |
| 20 |
[#1221](https://github.com/rust-lang/git2-rs/pull/1221) |
| 21 |
- Added public `Refdb` type, along with `Repository::refdb()` and `Repository::set_refdb()`. `Repository::refdb_compress()` now delegates to `Refdb::compress()`. |
| 22 |
[#1228](https://github.com/rust-lang/git2-rs/pull/1228) |
| 23 |
- Added `Revspec::into_objects()`. |
| 24 |
[#1230](https://github.com/rust-lang/git2-rs/pull/1230) |
| 25 |
- Added `BlameHunk::final_committer()`, `BlameHunk::orig_committer()`, `BlameHunk::summary()`, and `BlameHunk::summary_bytes()`. |
| 26 |
[#1231](https://github.com/rust-lang/git2-rs/pull/1231) |
| 27 |
- Implemented `Clone` for `Reference`. |
| 28 |
[#1233](https://github.com/rust-lang/git2-rs/pull/1233) |
| 29 |
- Added `Repository::author_from_env()` and `Repository::committer_from_env()`. |
| 30 |
[#1237](https://github.com/rust-lang/git2-rs/pull/1237) |
| 31 |
- Added `impl From<Utf8Error> for Error`. |
| 32 |
[#1239](https://github.com/rust-lang/git2-rs/pull/1239) |
| 33 |
|
| 34 |
### Changed |
| 35 |
|
| 36 |
- ❗ The `ssh`, `https`, and `cred` Cargo features are no longer enabled by default. |
| 37 |
Previously `default = ["ssh", "https"]`; now `default = []`. |
| 38 |
Enable them explicitly if you rely on credential helpers or transport support. |
| 39 |
[#1168](https://github.com/rust-lang/git2-rs/pull/1168) |
| 40 |
- ❗ `CredentialHelper` and the `url` dependency are now gated behind the new `cred` Cargo feature. |
| 41 |
Enabling `ssh` or `https` transitively enables `cred`. |
| 42 |
[#1168](https://github.com/rust-lang/git2-rs/pull/1168) |
| 43 |
- ❗ Updated to the 2021 edition. |
| 44 |
[#1173](https://github.com/rust-lang/git2-rs/pull/1173) |
| 45 |
- ❗ Many string accessors that previously returned `Option<&str>` |
| 46 |
now return `Result<&str, Error>` or `Result<Option<&str>, Error>`, |
| 47 |
so callers can distinguish a missing value from a non-UTF-8 one. |
| 48 |
[#1241](https://github.com/rust-lang/git2-rs/pull/1241) |
| 49 |
- ❗ `BlameHunk::final_signature`, `BlameHunk::final_committer`, `BlameHunk::orig_signature`, and `BlameHunk::orig_committer` |
| 50 |
now return `Option` to avoid segfaults when signature information is missing. |
| 51 |
[#1254](https://github.com/rust-lang/git2-rs/pull/1254) |
| 52 |
- Bumped requirement to libgit2-sys 0.18.4, which updates libgit2 to 1.9.3. |
| 53 |
[#1242](https://github.com/rust-lang/git2-rs/pull/1242) |
| 54 |
|
| 55 |
### Fixed |
| 56 |
|
| 57 |
- Fixed `MergeOptions::skip_reuc()` to use the correct `GIT_MERGE_SKIP_REUC` flag. |
| 58 |
[#1194](https://github.com/rust-lang/git2-rs/pull/1194) |
| 59 |
- `Repository::submodules()` now returns an `Error` when the underlying `git_submodule_lookup()` call to libgit2 fails, rather than panicking with a failed assertion. |
| 60 |
[#1220](https://github.com/rust-lang/git2-rs/pull/1220) |
| 61 |
- `Reference::is_valid_name()` now propagates errors from `CString` conversion instead of panicking. |
| 62 |
[#1229](https://github.com/rust-lang/git2-rs/pull/1229) |
| 63 |
- Fixed `Remote::list()` to return an empty list instead of erroring |
| 64 |
when the remote advertises no refs. |
| 65 |
[#1250](https://github.com/rust-lang/git2-rs/pull/1250) |
| 66 |
- `ReferenceNames` now returns an `Err` for non-UTF-8 branch names instead of panicking. |
| 67 |
[#1239](https://github.com/rust-lang/git2-rs/pull/1239) |
| 68 |
|
| 69 |
### Documentation |
| 70 |
|
| 71 |
- Added note regarding potentially confusing behavior of `git_checkout_head`. |
| 72 |
[#1149](https://github.com/rust-lang/git2-rs/pull/1149) |
| 73 |
- Added comments describing the `IndexAddOption` flags. |
| 74 |
[#1163](https://github.com/rust-lang/git2-rs/pull/1163) |
| 75 |
- Updated README note about the `ssh` feature. |
| 76 |
[#1187](https://github.com/rust-lang/git2-rs/pull/1187) |
| 77 |
- Improved function docs for `Repository::tag_foreach()`. |
| 78 |
[#1190](https://github.com/rust-lang/git2-rs/pull/1190) |
| 79 |
- Fixed doc comment typo in `StatusOptions`. |
| 80 |
[#1199](https://github.com/rust-lang/git2-rs/pull/1199) |
| 81 |
- Fixed missing period in module documentation. |
| 82 |
[#1219](https://github.com/rust-lang/git2-rs/pull/1219) |
| 83 |
- Small wording fix in `Signature::from_raw_const()` docs. |
| 84 |
[#1222](https://github.com/rust-lang/git2-rs/pull/1222) |
| 85 |
- Replaced discussion of missing gist in README. |
| 86 |
[#1223](https://github.com/rust-lang/git2-rs/pull/1223) |
| 87 |
- Documented the bitflag methods for checking flags. |
| 88 |
[#1224](https://github.com/rust-lang/git2-rs/pull/1224) |
| 89 |
- Clarified `CheckoutBuilder::update_index()` documentation. |
| 90 |
[#1232](https://github.com/rust-lang/git2-rs/pull/1232) |
| 91 |
- Added more missing documentation. |
| 92 |
[#1235](https://github.com/rust-lang/git2-rs/pull/1235) |
| 93 |
- Fixed typo in `Repository::stash_save_ext()` docs. |
| 94 |
[#1245](https://github.com/rust-lang/git2-rs/pull/1245) |
| 95 |
- Added example showing retrieval of the latest commit for a file. |
| 96 |
[#1243](https://github.com/rust-lang/git2-rs/pull/1243) |
| 97 |
- Replaced comma with period in `CheckoutBuilder::refresh()` docs. |
| 98 |
[#1252](https://github.com/rust-lang/git2-rs/pull/1252) |
| 99 |
|
| 100 |
### Internals |
| 101 |
|
| 102 |
- Dropped `civet`/`conduit` from dev-dependencies. |
| 103 |
[#1170](https://github.com/rust-lang/git2-rs/pull/1170) |
| 104 |
- Updated dependencies. |
| 105 |
[#1171](https://github.com/rust-lang/git2-rs/pull/1171) |
| 106 |
- Fixed lockfile verification in CI. |
| 107 |
[#1177](https://github.com/rust-lang/git2-rs/pull/1177) |
| 108 |
- Updated CI and documentation to cover feature combinations. |
| 109 |
[#1182](https://github.com/rust-lang/git2-rs/pull/1182) |
| 110 |
- Listed all examples that may need HTTP and SSH. |
| 111 |
[#1196](https://github.com/rust-lang/git2-rs/pull/1196) |
| 112 |
- Allowed publishing from any ref in the publish workflow. |
| 113 |
[#1198](https://github.com/rust-lang/git2-rs/pull/1198) |
| 114 |
- Bumped `time` from 0.3.41 to 0.3.47. |
| 115 |
[#1215](https://github.com/rust-lang/git2-rs/pull/1215) |
| 116 |
- Added end-to-end test for branch name on initialization. |
| 117 |
[#1244](https://github.com/rust-lang/git2-rs/pull/1244) |
| 118 |
- Added end-to-end test for stash count. |
| 119 |
[#1246](https://github.com/rust-lang/git2-rs/pull/1246) |
| 120 |
- Added end-to-end tests demonstrating use of `Repository::statuses()`. |
| 121 |
[#1251](https://github.com/rust-lang/git2-rs/pull/1251) |
| 122 |
- Internal refactors preparing for experimental SHA256 OID support. |
| 123 |
[#1201](https://github.com/rust-lang/git2-rs/pull/1201) |
| 124 |
[#1205](https://github.com/rust-lang/git2-rs/pull/1205) |
| 125 |
|
| 126 |
## 0.20.4 - 2026-02-02 |
| 127 |
[0.20.3...0.20.4](https://github.com/rust-lang/git2-rs/compare/git2-0.20.3...git2-0.20.4) |
| 128 |
|
| 129 |
### Fixed |
| 130 |
|
| 131 |
- Fix undefined behavior when dereferencing empty `Buf`. |
| 132 |
[#1213](https://github.com/rust-lang/git2-rs/pull/1213) |
| 133 |
|
| 134 |
## 0.20.3 - 2025-12-06 |
| 135 |
[0.20.2...0.20.3](https://github.com/rust-lang/git2-rs/compare/git2-0.20.2...git2-0.20.3) |
| 136 |
|
| 137 |
### Changed |
| 138 |
|
| 139 |
- Bumped requirement to libgit2-sys 0.18.3, which updates libgit2 from 1.9.0 to 1.9.2. |
| 140 |
[#1197](https://github.com/rust-lang/git2-rs/pull/1197) |
| 141 |
|
| 142 |
## 0.20.2 - 2025-05-05 |
| 143 |
[0.20.1...0.20.2](https://github.com/rust-lang/git2-rs/compare/git2-0.20.1...git2-0.20.2) |
| 144 |
|
| 145 |
### Added |
| 146 |
|
| 147 |
- Added `Status::WT_UNREADABLE`. |
| 148 |
[#1151](https://github.com/rust-lang/git2-rs/pull/1151) |
| 149 |
|
| 150 |
### Fixed |
| 151 |
|
| 152 |
- Added missing codes for `GIT_EDIRECTORY`, `GIT_EMERGECONFLICT`, `GIT_EUNCHANGED`, `GIT_ENOTSUPPORTED`, and `GIT_EREADONLY` to `Error::raw_code`. |
| 153 |
[#1153](https://github.com/rust-lang/git2-rs/pull/1153) |
| 154 |
- Fixed missing initialization in `Indexer::new`. |
| 155 |
[#1160](https://github.com/rust-lang/git2-rs/pull/1160) |
| 156 |
|
| 157 |
## 0.20.1 - 2025-03-17 |
| 158 |
[0.20.0...0.20.1](https://github.com/rust-lang/git2-rs/compare/git2-0.20.0...git2-0.20.1) |
| 159 |
|
| 160 |
### Added |
| 161 |
|
| 162 |
- Added `Repository::branch_upstream_merge()` |
| 163 |
[#1131](https://github.com/rust-lang/git2-rs/pull/1131) |
| 164 |
- Added `Index::conflict_get()` |
| 165 |
[#1134](https://github.com/rust-lang/git2-rs/pull/1134) |
| 166 |
- Added `Index::conflict_remove()` |
| 167 |
[#1133](https://github.com/rust-lang/git2-rs/pull/1133) |
| 168 |
- Added `opts::set_cache_object_limit()` |
| 169 |
[#1118](https://github.com/rust-lang/git2-rs/pull/1118) |
| 170 |
- Added `Repo::merge_file_from_index()` and associated `MergeFileOptions` and `MergeFileResult`. |
| 171 |
[#1062](https://github.com/rust-lang/git2-rs/pull/1062) |
| 172 |
|
| 173 |
### Changed |
| 174 |
|
| 175 |
- The `url` dependency minimum raised to 2.5.4 |
| 176 |
[#1128](https://github.com/rust-lang/git2-rs/pull/1128) |
| 177 |
- Changed the tracing callback to abort the process if the callback panics instead of randomly detecting the panic in some other function. |
| 178 |
[#1121](https://github.com/rust-lang/git2-rs/pull/1121) |
| 179 |
- Credential helper config (loaded with `CredentialHelper::config`) now checks for helpers that start with something that looks like an absolute path, rather than checking for a `/` or `\` anywhere in the helper string (which resolves an issue if the helper had arguments with `/` or `\`). |
| 180 |
[#1137](https://github.com/rust-lang/git2-rs/pull/1137) |
| 181 |
|
| 182 |
### Fixed |
| 183 |
|
| 184 |
- Fixed panic in `Remote::url_bytes` if the url is empty. |
| 185 |
[#1120](https://github.com/rust-lang/git2-rs/pull/1120) |
| 186 |
- Fixed incorrect lifetimes on `Patch::delta`, `Patch::hunk`, and `Patch::line_in_hunk`. The return values must not outlive the `Patch`. |
| 187 |
[#1141](https://github.com/rust-lang/git2-rs/pull/1141) |
| 188 |
- Bumped requirement to libgit2-sys 0.18.1, which fixes linking of advapi32 on Windows. |
| 189 |
[#1143](https://github.com/rust-lang/git2-rs/pull/1143) |
| 190 |
|
| 191 |
|
| 192 |
## 0.20.0 - 2025-01-04 |
| 193 |
[0.19.0...0.20.0](https://github.com/rust-lang/git2-rs/compare/git2-0.19.0...git2-0.20.0) |
| 194 |
|
| 195 |
### Added |
| 196 |
|
| 197 |
- `Debug` is now implemented for `transport::Service` |
| 198 |
[#1074](https://github.com/rust-lang/git2-rs/pull/1074) |
| 199 |
- Added `Repository::commondir` |
| 200 |
[#1079](https://github.com/rust-lang/git2-rs/pull/1079) |
| 201 |
- Added `Repository::merge_base_octopus` |
| 202 |
[#1088](https://github.com/rust-lang/git2-rs/pull/1088) |
| 203 |
- Restored impls for `PartialOrd`, `Ord`, and `Hash` for bitflags types that were inadvertently removed in a prior release. |
| 204 |
[#1096](https://github.com/rust-lang/git2-rs/pull/1096) |
| 205 |
- Added `CheckoutBuilder::disable_pathspec_match` |
| 206 |
[#1107](https://github.com/rust-lang/git2-rs/pull/1107) |
| 207 |
- Added `PackBuilder::write` |
| 208 |
[#1110](https://github.com/rust-lang/git2-rs/pull/1110) |
| 209 |
|
| 210 |
### Changed |
| 211 |
|
| 212 |
- ❗ Updated to libgit2 [1.9.0](https://github.com/libgit2/libgit2/releases/tag/v1.9.0) |
| 213 |
[#1111](https://github.com/rust-lang/git2-rs/pull/1111) |
| 214 |
- ❗ Removed the `ssh_key_from_memory` Cargo feature, it was unused. |
| 215 |
[#1087](https://github.com/rust-lang/git2-rs/pull/1087) |
| 216 |
- ❗ Errors from `Tree::walk` are now correctly reported to the caller. |
| 217 |
[#1098](https://github.com/rust-lang/git2-rs/pull/1098) |
| 218 |
- ❗ The `trace_set` callback now takes a `&[u8]` instead of a `&str`. |
| 219 |
[#1071](https://github.com/rust-lang/git2-rs/pull/1071) |
| 220 |
- ❗ `Error::last_error` now returns `Error` instead of `Option<Error>`. |
| 221 |
[#1072](https://github.com/rust-lang/git2-rs/pull/1072) |
| 222 |
|
| 223 |
### Fixed |
| 224 |
|
| 225 |
- Fixed `OdbReader::read` return value. |
| 226 |
[#1061](https://github.com/rust-lang/git2-rs/pull/1061) |
| 227 |
- When a credential helper executes a shell command, don't pop open a console window on Windows. |
| 228 |
[#1075](https://github.com/rust-lang/git2-rs/pull/1075) |
| 229 |
|
| 230 |
## 0.19.0 - 2024-06-13 |
| 231 |
[0.18.3...0.19.0](https://github.com/rust-lang/git2-rs/compare/git2-0.18.3...git2-0.19.0) |
| 232 |
|
| 233 |
### Added |
| 234 |
|
| 235 |
- Added `opts` functions to control server timeouts (`get_server_connect_timeout_in_milliseconds`, `set_server_connect_timeout_in_milliseconds`, `get_server_timeout_in_milliseconds`, `set_server_timeout_in_milliseconds`), and add `ErrorCode::Timeout`. |
| 236 |
[#1052](https://github.com/rust-lang/git2-rs/pull/1052) |
| 237 |
|
| 238 |
### Changed |
| 239 |
|
| 240 |
- ❗ Updated to libgit2 [1.8.1](https://github.com/libgit2/libgit2/releases/tag/v1.8.1) |
| 241 |
[#1032](https://github.com/rust-lang/git2-rs/pull/1032) |
| 242 |
- Reduced size of the `Error` struct. |
| 243 |
[#1053](https://github.com/rust-lang/git2-rs/pull/1053) |
| 244 |
|
| 245 |
### Fixed |
| 246 |
|
| 247 |
- Fixed some callbacks to relay the error from the callback to libgit2. |
| 248 |
[#1043](https://github.com/rust-lang/git2-rs/pull/1043) |
| 249 |
|
| 250 |
## 0.18.3 - 2024-03-18 |
| 251 |
[0.18.2...0.18.3](https://github.com/rust-lang/git2-rs/compare/git2-0.18.2...git2-0.18.3) |
| 252 |
|
| 253 |
### Added |
| 254 |
|
| 255 |
- Added `opts::` functions to get / set libgit2 mwindow options |
| 256 |
[#1035](https://github.com/rust-lang/git2-rs/pull/1035) |
| 257 |
|
| 258 |
|
| 259 |
### Changed |
| 260 |
|
| 261 |
- Updated examples to use clap instead of structopt |
| 262 |
[#1007](https://github.com/rust-lang/git2-rs/pull/1007) |
| 263 |
|
| 264 |
## 0.18.2 - 2024-02-06 |
| 265 |
[0.18.1...0.18.2](https://github.com/rust-lang/git2-rs/compare/git2-0.18.1...git2-0.18.2) |
| 266 |
|
| 267 |
### Added |
| 268 |
|
| 269 |
- Added `opts::set_ssl_cert_file` and `opts::set_ssl_cert_dir` for setting Certificate Authority file locations. |
| 270 |
[#997](https://github.com/rust-lang/git2-rs/pull/997) |
| 271 |
- Added `TreeIter::nth` which makes jumping ahead in the iterator more efficient. |
| 272 |
[#1004](https://github.com/rust-lang/git2-rs/pull/1004) |
| 273 |
- Added `Repository::find_commit_by_prefix` to find a commit by a shortened hash. |
| 274 |
[#1011](https://github.com/rust-lang/git2-rs/pull/1011) |
| 275 |
- Added `Repository::find_tag_by_prefix` to find a tag by a shortened hash. |
| 276 |
[#1015](https://github.com/rust-lang/git2-rs/pull/1015) |
| 277 |
- Added `Repository::find_object_by_prefix` to find an object by a shortened hash. |
| 278 |
[#1014](https://github.com/rust-lang/git2-rs/pull/1014) |
| 279 |
|
| 280 |
### Changed |
| 281 |
|
| 282 |
- ❗ Updated to libgit2 [1.7.2](https://github.com/libgit2/libgit2/releases/tag/v1.7.2). |
| 283 |
This fixes [CVE-2024-24575](https://github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9v) and [CVE-2024-24577](https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8). |
| 284 |
[#1017](https://github.com/rust-lang/git2-rs/pull/1017) |
| 285 |
|
| 286 |
## 0.18.1 - 2023-09-20 |
| 287 |
[0.18.0...0.18.1](https://github.com/rust-lang/git2-rs/compare/git2-0.18.0...git2-0.18.1) |
| 288 |
|
| 289 |
### Added |
| 290 |
|
| 291 |
- Added `FetchOptions::depth` to set the depth of a fetch or clone, adding support for shallow clones. |
| 292 |
[#979](https://github.com/rust-lang/git2-rs/pull/979) |
| 293 |
|
| 294 |
### Fixed |
| 295 |
|
| 296 |
- Fixed an internal data type (`TreeWalkCbData`) to not assume it is a transparent type while casting. |
| 297 |
[#989](https://github.com/rust-lang/git2-rs/pull/989) |
| 298 |
- Fixed so that `DiffPatchidOptions` and `StashSaveOptions` are publicly exported allowing the corresponding APIs to actually be used. |
| 299 |
[#988](https://github.com/rust-lang/git2-rs/pull/988) |
| 300 |
|
| 301 |
## 0.18.0 - 2023-08-28 |
| 302 |
[0.17.2...0.18.0](https://github.com/rust-lang/git2-rs/compare/0.17.2...git2-0.18.0) |
| 303 |
|
| 304 |
### Added |
| 305 |
|
| 306 |
- Added `Blame::blame_buffer` for getting blame data for a file that has been modified in memory. |
| 307 |
[#981](https://github.com/rust-lang/git2-rs/pull/981) |
| 308 |
|
| 309 |
### Changed |
| 310 |
|
| 311 |
- Updated to libgit2 [1.7.0](https://github.com/libgit2/libgit2/releases/tag/v1.7.0). |
| 312 |
[#968](https://github.com/rust-lang/git2-rs/pull/968) |
| 313 |
- Updated to libgit2 [1.7.1](https://github.com/libgit2/libgit2/releases/tag/v1.7.1). |
| 314 |
[#982](https://github.com/rust-lang/git2-rs/pull/982) |
| 315 |
- Switched from bitflags 1.x to 2.1. This brings some small changes to types generated by bitflags. |
| 316 |
[#973](https://github.com/rust-lang/git2-rs/pull/973) |
| 317 |
- Changed `Revwalk::with_hide_callback` to take a mutable reference to its callback to enforce type safety. |
| 318 |
[#970](https://github.com/rust-lang/git2-rs/pull/970) |
| 319 |
- Implemented `FusedIterator` for many iterators that can support it. |
| 320 |
[#955](https://github.com/rust-lang/git2-rs/pull/955) |
| 321 |
|
| 322 |
### Fixed |
| 323 |
|
| 324 |
- Fixed builds with cargo's `-Zminimal-versions`. |
| 325 |
[#960](https://github.com/rust-lang/git2-rs/pull/960) |
| 326 |
|
| 327 |
## 0.17.2 - 2023-05-27 |
| 328 |
[0.17.1...0.17.2](https://github.com/rust-lang/git2-rs/compare/0.17.1...0.17.2) |
| 329 |
|
| 330 |
### Added |
| 331 |
- Added support for stashing with options (which can support partial stashing). |
| 332 |
[#930](https://github.com/rust-lang/git2-rs/pull/930) |
| 333 |
|
| 334 |
## 0.17.1 - 2023-04-13 |
| 335 |
[0.17.0...0.17.1](https://github.com/rust-lang/git2-rs/compare/0.17.0...0.17.1) |
| 336 |
|
| 337 |
### Changed |
| 338 |
|
| 339 |
- Updated to libgit2 [1.6.4](https://github.com/libgit2/libgit2/releases/tag/v1.6.4). |
| 340 |
[#948](https://github.com/rust-lang/git2-rs/pull/948) |
| 341 |
|
| 342 |
## 0.17.0 - 2023-04-02 |
| 343 |
[0.16.1...0.17.0](https://github.com/rust-lang/git2-rs/compare/0.16.1...0.17.0) |
| 344 |
|
| 345 |
### Added |
| 346 |
|
| 347 |
- Added `IntoIterator` implementation for `Statuses`. |
| 348 |
[#880](https://github.com/rust-lang/git2-rs/pull/880) |
| 349 |
- Added `Reference::symbolic_set_target` |
| 350 |
[#893](https://github.com/rust-lang/git2-rs/pull/893) |
| 351 |
- Added `Copy`, `Clone`, `Debug`, `PartialEq`, and `Eq` implementations for `AutotagOption` and `FetchPrune`. |
| 352 |
[#889](https://github.com/rust-lang/git2-rs/pull/889) |
| 353 |
- Added `Eq` and `PartialEq` implementations for `Signature`. |
| 354 |
[#890](https://github.com/rust-lang/git2-rs/pull/890) |
| 355 |
- Added `Repository::discover_path`. |
| 356 |
[#883](https://github.com/rust-lang/git2-rs/pull/883) |
| 357 |
- Added `Submodule::repo_init`. |
| 358 |
[#914](https://github.com/rust-lang/git2-rs/pull/914) |
| 359 |
- Added `Tag::is_valid_name`. |
| 360 |
[#882](https://github.com/rust-lang/git2-rs/pull/882) |
| 361 |
- Added `Repository::set_head_bytes`. |
| 362 |
[#931](https://github.com/rust-lang/git2-rs/pull/931) |
| 363 |
- Added the `Indexer` type which is a low-level API for storing and indexing pack files. |
| 364 |
[#911](https://github.com/rust-lang/git2-rs/pull/911) |
| 365 |
- Added `Index::find_prefix`. |
| 366 |
[#903](https://github.com/rust-lang/git2-rs/pull/903) |
| 367 |
- Added support for the deprecated group-writeable blob mode. This adds a new variant to `FileMode`. |
| 368 |
[#887](https://github.com/rust-lang/git2-rs/pull/887) |
| 369 |
- Added `PushCallbacks::push_negotiation` callback and the corresponding `PushUpdate` type for getting receiving information about the updates to perform. |
| 370 |
[#926](https://github.com/rust-lang/git2-rs/pull/926) |
| 371 |
|
| 372 |
### Changed |
| 373 |
|
| 374 |
- Updated to libgit2 [1.6.3](https://github.com/libgit2/libgit2/blob/main/docs/changelog.md#v163). |
| 375 |
This brings in many changes, including better SSH host key support on Windows and better SSH host key algorithm negotiation. |
| 376 |
1.6.3 is now the minimum supported version. |
| 377 |
[#935](https://github.com/rust-lang/git2-rs/pull/935) |
| 378 |
- Updated libssh2-sys from 0.2 to 0.3. |
| 379 |
This brings in numerous changes, including SHA2 algorithm support with RSA. |
| 380 |
[#919](https://github.com/rust-lang/git2-rs/pull/919) |
| 381 |
- Changed `RemoteCallbacks::credentials` callback error handler to correctly set the libgit2 error class. |
| 382 |
[#918](https://github.com/rust-lang/git2-rs/pull/918) |
| 383 |
- `DiffOptions::flag` now takes a `git_diff_option_t` type. |
| 384 |
[#935](https://github.com/rust-lang/git2-rs/pull/935) |
| 385 |
|
| 386 |
|
| 387 |
## 0.16.1 - 2023-01-20 |
| 388 |
[0.16.0...0.16.1](https://github.com/rust-lang/git2-rs/compare/0.16.0...0.16.1) |
| 389 |
|
| 390 |
### Changed |
| 391 |
- Updated to [libgit2-sys 0.14.2+1.5.1](libgit2-sys/CHANGELOG.md#0142151---2023-01-20) |
| 392 |
|
| 393 |
## 0.16.0 - 2023-01-10 |
| 394 |
[0.15.0...0.16.0](https://github.com/rust-lang/git2-rs/compare/0.15.0...0.16.0) |
| 395 |
|
| 396 |
### Changed |
| 397 |
- Added ability to get the SSH host key and its type. |
| 398 |
This includes an API breaking change to the `certificate_check` callback. |
| 399 |
[#909](https://github.com/rust-lang/git2-rs/pull/909) |
| 400 |
- Updated to [libgit2-sys 0.14.1+1.5.0](libgit2-sys/CHANGELOG.md#0141150---2023-01-10) |
| 401 |
|
| 402 |
## 0.15.0 - 2022-07-28 |
| 403 |
[0.14.4...0.15.0](https://github.com/rust-lang/git2-rs/compare/0.14.4...0.15.0) |
| 404 |
|
| 405 |
### Added |
| 406 |
- Added `Repository::tag_annotation_create` binding `git_tag_annotation_create`. |
| 407 |
[#845](https://github.com/rust-lang/git2-rs/pull/845) |
| 408 |
- Added the `Email` type which represents a patch in mbox format for sending via email. |
| 409 |
Added the `EmailCreateOptions` struct to control formatting of the email. |
| 410 |
Deprecates `Diff::format_email`, use `Email::from_diff` instead. |
| 411 |
[#847](https://github.com/rust-lang/git2-rs/pull/847) |
| 412 |
- Added `ErrorCode::Owner` to map to the new `GIT_EOWNER` errors. |
| 413 |
[#839](https://github.com/rust-lang/git2-rs/pull/839) |
| 414 |
- Added `opts::set_verify_owner_validation` to set whether or not ownership validation is performed. |
| 415 |
[#839](https://github.com/rust-lang/git2-rs/pull/839) |
| 416 |
|
| 417 |
### Changed |
| 418 |
- Updated to [libgit2-sys 0.14.0+1.5.0](libgit2-sys/CHANGELOG.md#0140150---2022-07-28) |
| 419 |
- Removed the `Iterator` implementation for `ConfigEntries` due to the unsound usage of the API which allowed values to be used after free. |
| 420 |
Added `ConfigEntries::next` and `ConfigEntries::for_each` for iterating over all entries in a safe manor. |
| 421 |
[#854](https://github.com/rust-lang/git2-rs/pull/854) |
| 422 |
|
| 423 |
## 0.14.4 - 2022-05-19 |
| 424 |
[0.14.3...0.14.4](https://github.com/rust-lang/git2-rs/compare/0.14.3...0.14.4) |
| 425 |
|
| 426 |
### Added |
| 427 |
- Added `Commit::body` and `Commit::body_bytes` for retrieving the commit message body. |
| 428 |
[#835](https://github.com/rust-lang/git2-rs/pull/835) |
| 429 |
- Added `Tree::get_name_bytes` to handle non-UTF-8 entry names. |
| 430 |
[#841](https://github.com/rust-lang/git2-rs/pull/841) |
| 431 |
|
| 432 |
### Changed |
| 433 |
- Updated to [libgit2-sys 0.13.4+1.4.2](libgit2-sys/CHANGELOG.md#0134142---2022-05-10) |
| 434 |
|
| 435 |
## 0.14.3 - 2022-04-27 |
| 436 |
[0.14.2...0.14.3](https://github.com/rust-lang/git2-rs/compare/0.14.2...0.14.3) |
| 437 |
|
| 438 |
### Changed |
| 439 |
- Updated to [libgit2-sys 0.13.3+1.4.2](libgit2-sys/CHANGELOG.md#0133142---2022-04-27) |
| 440 |
|
| 441 |
### Fixed |
| 442 |
- Fixed the lifetime of `Remote::create_detached`. |
| 443 |
[#825](https://github.com/rust-lang/git2-rs/pull/825) |
| 444 |
|
| 445 |
## 0.14.2 - 2022-03-10 |
| 446 |
[0.14.1...0.14.2](https://github.com/rust-lang/git2-rs/compare/0.14.1...0.14.2) |
| 447 |
|
| 448 |
### Added |
| 449 |
- Added `Odb::exists_ext` to checks if an object database has an object, with extended flags. |
| 450 |
[#818](https://github.com/rust-lang/git2-rs/pull/818) |
| 451 |
|
| 452 |
### Changed |
| 453 |
- Updated to [libgit2-sys 0.13.2+1.4.2](libgit2-sys/CHANGELOG.md#0132142---2022-03-10) |
| 454 |
|
| 455 |
## 0.14.1 - 2022-02-28 |
| 456 |
[0.14.0...0.14.1](https://github.com/rust-lang/git2-rs/compare/0.14.0...0.14.1) |
| 457 |
|
| 458 |
### Changed |
| 459 |
- Updated to [libgit2-sys 0.13.1+1.4.2](libgit2-sys/CHANGELOG.md#0131142---2022-02-28) |
| 460 |
|
| 461 |
## 0.14.0 - 2022-02-24 |
| 462 |
[0.13.25...0.14.0](https://github.com/rust-lang/git2-rs/compare/0.13.25...0.14.0) |
| 463 |
|
| 464 |
### Added |
| 465 |
- Added `opts::get_extensions` and `opts::set_extensions` to support git extensions. |
| 466 |
[#791](https://github.com/rust-lang/git2-rs/pull/791) |
| 467 |
- Added `PackBuilder::name` and `PackBuilder::name_bytes`. |
| 468 |
[#806](https://github.com/rust-lang/git2-rs/pull/806) |
| 469 |
- Deprecated `PackBuilder::hash`, use `PackBuilder::name` instead. |
| 470 |
- Added `FetchOptions::follow_redirects` and `PushOptions::follow_redirects`. |
| 471 |
[#806](https://github.com/rust-lang/git2-rs/pull/806) |
| 472 |
- Added `StatusOptions::rename_threshold`. |
| 473 |
[#806](https://github.com/rust-lang/git2-rs/pull/806) |
| 474 |
|
| 475 |
### Changed |
| 476 |
- Updated to [libgit2-sys 0.13.0+1.4.1](libgit2-sys/CHANGELOG.md#0130141---2022-02-24) |
| 477 |
[#806](https://github.com/rust-lang/git2-rs/pull/806) |
| 478 |
[#811](https://github.com/rust-lang/git2-rs/pull/811) |