diff --git a/Cargo.lock b/Cargo.lock index 35969a4ff6..585a6e904b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -479,7 +479,7 @@ checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" [[package]] name = "libgit2-sys" -version = "0.18.3+1.9.2" +version = "0.18.4+1.9.3" dependencies = [ "cc", "libc", diff --git a/Cargo.toml b/Cargo.toml index 89f6de2ac5..0e1747cdea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ url = { version = "2.5.4", optional = true } bitflags = "2.1.0" libc = "0.2" log = "0.4.8" -libgit2-sys = { path = "libgit2-sys", version = "0.18.3" } +libgit2-sys = { path = "libgit2-sys", version = "0.18.4" } [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies] openssl-sys = { version = "0.9.45", optional = true } diff --git a/libgit2-sys/CHANGELOG.md b/libgit2-sys/CHANGELOG.md index 261d259f53..eff341545d 100644 --- a/libgit2-sys/CHANGELOG.md +++ b/libgit2-sys/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 0.18.4+1.9.3 - 2026-05-04 +[0.18.3...0.18.4](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.18.3+1.9.2...libgit2-sys-0.18.4+1.9.3) + +### Changed + +- Updated to libgit2 [1.9.3](https://github.com/libgit2/libgit2/releases/tag/v1.9.3) + [#1242](https://github.com/rust-lang/git2-rs/pull/1242) + +### Added + +- Added binding for `git_remote_oid_type` + [#1242](https://github.com/rust-lang/git2-rs/pull/1242) +- Added `GIT_REPOSITORY_INIT_RELATIVE_GITLINK` flag + [#1242](https://github.com/rust-lang/git2-rs/pull/1242) + ## 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) diff --git a/libgit2-sys/Cargo.toml b/libgit2-sys/Cargo.toml index 2229760846..fef7805729 100644 --- a/libgit2-sys/Cargo.toml +++ b/libgit2-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libgit2-sys" -version = "0.18.3+1.9.2" +version = "0.18.4+1.9.3" authors = ["Josh Triplett ", "Alex Crichton "] links = "git2" build = "build.rs" diff --git a/libgit2-sys/build.rs b/libgit2-sys/build.rs index 0803601af2..b45118c9b5 100644 --- a/libgit2-sys/build.rs +++ b/libgit2-sys/build.rs @@ -9,7 +9,7 @@ fn try_system_libgit2( experimental_sha256: bool, ) -> Result> { let mut cfg = pkg_config::Config::new(); - let range_version = "1.9.2".."1.10.0"; + let range_version = "1.9.3".."1.10.0"; let lib = if experimental_sha256 { // Determine whether experimental SHA256 object support is enabled. diff --git a/libgit2-sys/lib.rs b/libgit2-sys/lib.rs index 770d99eca6..40de36c54e 100644 --- a/libgit2-sys/lib.rs +++ b/libgit2-sys/lib.rs @@ -1240,6 +1240,7 @@ git_enum! { GIT_REPOSITORY_INIT_MKDIR = 1 << 3, GIT_REPOSITORY_INIT_MKPATH = 1 << 4, GIT_REPOSITORY_INIT_EXTERNAL_TEMPLATE = 1 << 5, + GIT_REPOSITORY_INIT_RELATIVE_GITLINK = 1 << 6, } } @@ -2651,6 +2652,7 @@ extern "C" { size: *mut size_t, remote: *mut git_remote, ) -> c_int; + pub fn git_remote_oid_type(out: *mut git_oid_t, remote: *mut git_remote) -> c_int; pub fn git_remote_set_autotag( repo: *mut git_repository, remote: *const c_char, diff --git a/libgit2-sys/libgit2 b/libgit2-sys/libgit2 index ca225744b9..1affb8b193 160000 --- a/libgit2-sys/libgit2 +++ b/libgit2-sys/libgit2 @@ -1 +1 @@ -Subproject commit ca225744b992bf2bf24e9a2eb357ddef78179667 +Subproject commit 1affb8b19346c4f90e163a9a0364959ff1410f64