Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.20.3 - 2025-12-06
[0.20.2...0.20.3](https://github.com/rust-lang/git2-rs/compare/git2-0.20.2...git2-0.20.3)

### Changed

- Bumped requirement to libgit2-sys 0.18.3, which updates libgit2 from 1.9.0 to 1.9.2.
[#1197](https://github.com/rust-lang/git2-rs/pull/1197)

## 0.20.2 - 2025-05-05
[0.20.1...0.20.2](https://github.com/rust-lang/git2-rs/compare/git2-0.20.1...git2-0.20.2)

Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "git2"
version = "0.20.2"
version = "0.20.3"
authors = ["Josh Triplett <[email protected]>", "Alex Crichton <[email protected]>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -20,7 +20,7 @@ url = "2.5.4"
bitflags = "2.1.0"
libc = "0.2"
log = "0.4.8"
libgit2-sys = { path = "libgit2-sys", version = "0.18.1" }
libgit2-sys = { path = "libgit2-sys", version = "0.18.3" }

[target."cfg(all(unix, not(target_os = \"macos\")))".dependencies]
openssl-sys = { version = "0.9.45", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libgit2 bindings for Rust.

```toml
[dependencies]
git2 = "0.20.2"
git2 = "0.20.3"
```

## Rust version requirements
Expand Down
18 changes: 18 additions & 0 deletions libgit2-sys/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.18.3+1.9.2 - 2025-12-06
[0.18.2...0.18.3](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.18.2+1.9.1...libgit2-sys-0.18.3+1.9.2)

### Changed
- Updated to libgit2 [1.9.2](https://github.com/libgit2/libgit2/releases/tag/v1.9.2)
[#1195](https://github.com/rust-lang/git2-rs/pull/1195)

Note that this release fixes two security issues. However, the Rust bindings do not provide direct support for the affected APIs. In particular:
- The `libgit2-sys` crate does not support building the vendored C library with the `GIT_SSH_EXEC` setting. This will only be an issue if you are binding to a system-provided library built with this setting.
- The `git2` crate does not support custom SSH credentials. However, the `libgit2-sys` crate does export the `git_cred_ssh_custom_new` C-binding. Any projects using the C bindings directly are affected.

## 0.18.2+1.9.1 - 2025-06-21
[0.18.1...0.18.2](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.18.1+1.9.0...libgit2-sys-0.18.2+1.9.1)

### Changed
- Updated to libgit2 [1.9.1](https://github.com/libgit2/libgit2/releases/tag/v1.9.1)
[#1169](https://github.com/rust-lang/git2-rs/pull/1169)

## 0.18.1+1.9.0 - 2025-03-17
[0.18.0...0.18.1](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.18.0+1.9.0...libgit2-sys-0.18.1+1.9.0)

Expand Down
2 changes: 1 addition & 1 deletion libgit2-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libgit2-sys"
version = "0.18.1+1.9.0"
version = "0.18.3+1.9.2"
authors = ["Josh Triplett <[email protected]>", "Alex Crichton <[email protected]>"]
links = "git2"
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion libgit2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::process::Command;
/// Tries to use system libgit2 and emits necessary build script instructions.
fn try_system_libgit2() -> Result<pkg_config::Library, pkg_config::Error> {
let mut cfg = pkg_config::Config::new();
match cfg.range_version("1.9.0".."1.10.0").probe("libgit2") {
match cfg.range_version("1.9.2".."1.10.0").probe("libgit2") {
Ok(lib) => {
for include in &lib.include_paths {
println!("cargo:root={}", include.display());
Expand Down
2 changes: 1 addition & 1 deletion libgit2-sys/libgit2
Submodule libgit2 updated 65 files
+1 −1 .github/workflows/experimental.yml
+1 −0 AUTHORS
+1 −1 CMakeLists.txt
+4 −1 cmake/DefaultCFlags.cmake
+1 −1 cmake/SelectSSH.cmake
+111 −0 docs/changelog.md
+3 −1 fuzzers/CMakeLists.txt
+0 −1 include/git2/oid.h
+3 −3 include/git2/remote.h
+1 −1 include/git2/stdint.h
+4 −2 include/git2/version.h
+1 −1 package.json
+1 −1 src/cli/opt.c
+3 −3 src/libgit2/CMakeLists.txt
+9 −2 src/libgit2/attr_file.c
+19 −12 src/libgit2/diff_stats.c
+2 −6 src/libgit2/odb.c
+3 −1 src/libgit2/tag.c
+1 −1 src/libgit2/transports/credential.c
+57 −18 src/libgit2/transports/ssh_exec.c
+66 −6 src/util/fs_path.c
+6 −0 src/util/fs_path.h
+14 −4 src/util/hash/builtin.c
+0 −4 src/util/hash/openssl.c
+2 −1 src/util/process.h
+18 −6 src/util/str.c
+5 −3 src/util/str.h
+91 −14 src/util/unix/process.c
+15 −2 src/util/util.c
+1 −0 src/util/util.h
+81 −5 src/util/win32/path_w32.c
+22 −6 src/util/win32/process.c
+3 −3 tests/benchmarks/benchmark.sh
+147 −78 tests/clar/clar.c
+62 −21 tests/clar/clar.h
+3 −3 tests/clar/clar/fixtures.h
+6 −10 tests/clar/clar/fs.h
+10 −5 tests/clar/clar/print.h
+159 −48 tests/clar/clar/sandbox.h
+5 −9 tests/clar/clar/summary.h
+2 −2 tests/clar/clar_libgit2.c
+1 −0 tests/libgit2/CMakeLists.txt
+11 −11 tests/libgit2/checkout/conflict.c
+5 −0 tests/libgit2/config/global.c
+20 −0 tests/libgit2/diff/stats.c
+12 −0 tests/libgit2/filter/query.c
+17 −4 tests/libgit2/filter/systemattrs.c
+36 −0 tests/libgit2/odb/alternates.c
+4 −4 tests/libgit2/online/clone.c
+4 −3 tests/libgit2/online/push.c
+2 −0 tests/libgit2/refs/tags/name.c
+2 −0 tests/libgit2/transport/register.c
+ tests/resources/diff_format_email/.gitted/index
+1 −0 tests/resources/diff_format_email/.gitted/objects/7f/4c6d9d6ba363e3352f7c21807ca3a7835072b2
+ tests/resources/diff_format_email/.gitted/objects/7f/9b9a5984d19db4a566151374762e2628ec26b3
+ tests/resources/diff_format_email/.gitted/objects/8f/6fa527fd62979afab1d2346828c7e801daac32
+ tests/resources/diff_format_email/.gitted/objects/eb/d0b64ca4dd3e5dbcd9d1a12a1f2b84f893a22d
+ tests/resources/diff_format_email/.gitted/objects/ff/03799ab60143654e260d91049a99551299b2a5
+1 −1 tests/resources/diff_format_email/.gitted/refs/heads/master
+0 −0 tests/resources/diff_format_email/dir/rerenamed.txt
+1 −1 tests/resources/diff_format_email/file3.txt
+1 −0 tests/util/CMakeLists.txt
+19 −3 tests/util/gitstr.c
+72 −8 tests/util/path/core.c
+46 −0 tests/util/process/start.c