Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
289 lines (215 loc) · 14.4 KB

File metadata and controls

289 lines (215 loc) · 14.4 KB

Changelog

0.18.4+1.9.3 - 2026-05-07

0.18.3...0.18.4

Changed

Fixed

  • Fixed the signature of git_config_backend::unlock. Previously the second c_int argument was missing and the declaration was unusable. #1181

Added

  • Added experimental SHA256 OID support behind a new unstable-sha256 Cargo feature. This reflects upstream libgit2's GIT_EXPERIMENTAL_SHA256 feature gate, and requires the linked libgit2 C library to be built with the experimental flag. When enabled, the build supports linking against a system libgit2-experimental.so. See the feature description in Cargo.toml for ABI-stability caveats. #1201
  • Added binding for git_repository_oid_type. #1204
  • Added binding for git_oid_is_zero, replacing the deprecated git_oid_iszero. #1205
  • Added binding for git_remote_oid_type. #1242
  • Added GIT_REPOSITORY_INIT_RELATIVE_GITLINK flag. #1242
  • Added bindings for the git_merge_file_input API, including git_merge_file_input_init. #1210
  • Added bindings for git_odb_stream and git_odb_stream_t. #1181
  • Added bindings for git_reference_iterator. #1181
  • Added bindings for APIs from git2/sys/config.h, including the missing iterator function on git_config_backend. #1181
  • Added binding for git_reference_dup. #1233
  • Added binding for git_signature_default_from_env. #1237

0.18.3+1.9.2 - 2025-12-06

0.18.2...0.18.3

Changed

  • Updated to libgit2 1.9.2 #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

Changed

0.18.1+1.9.0 - 2025-03-17

0.18.0...0.18.1

Added

  • Added binding for git_branch_upstream_merge #1131
  • Added bindings for git_merge_file_options and git_merge_file_result, git_merge_file_options_init, git_merge_file_from_index, git_merge_file_result_free, and updated git_merge_file_flag_t. #1062

Fixed

  • Fixed linking to advapi32 on Windows for recent nightly versions of Rust. #1143

0.18.0+1.9.0 - 2025-01-04

0.16.2...0.17.0

Added

  • Added bindings for git_repository_commondir #1079
  • Added bindings for git_merge_base_octopus #1088

Changed

  • ❗ Updated to libgit2 1.9.0 #1111
  • ❗ Removed the ssh_key_from_memory Cargo feature, it was unused. #1087

0.17.0+1.8.1 - 2024-06-13

0.16.2...0.17.0

Changed

0.16.2+1.7.2 - 2024-02-06

0.16.1...0.16.2

Added

  • Added binding for git_commit_lookup_prefix. #1011
  • Added binding for git_object_lookup_prefix. #1014

Changed

0.16.1+1.7.1 - 2023-08-28

0.16.0...0.16.1

Fixed

  • Fixed publish of 0.16.0 missing the libgit2 submodule.

0.16.0+1.7.1 - 2023-08-28

0.15.2...0.16.0

Added

  • Added LIBGIT2_NO_VENDOR environment variable to force using the system libgit2. #966
  • Added binding for git_blame_buffer. #981

Changed

Fixed

  • Fixed builds with cargo's -Zminimal-versions. #960

0.15.2+1.6.4 - 2023-05-27

0.15.1...0.15.2

Added

  • Added bindings for stash options. #930

0.15.1+1.6.4 - 2023-04-13

0.15.0...0.15.1

Changed

  • Updated to libgit2 1.6.4. This brings in a minor fix on Windows when the ProgramData directory does not exist. #948

0.15.0+1.6.3 - 2023-04-02

0.14.2...0.15.0

Added

  • Added bindings for git_remote_name_is_valid, git_reference_name_is_valid, and git_tag_name_is_valid. #882
  • Added bindings for git_indexer support. #911
  • Added bindings for git_index_find_prefix. #903
  • Added support for the deprecated group-writeable blob file mode. #887

Changed

  • Updated libssh2-sys from 0.2 to 0.3. This brings in numerous changes, including SHA2 algorithm support with RSA. #919
  • Updated to libgit2 1.6.3. This brings in many changes, including better SSH host key support on Windows and better SSH host key algorithm negotiation. 1.6.3 is now the minimum supported version. #935
  • The GIT_DIFF_ constants have been changed to be a git_diff_option_t type. #935

Fixed

  • Fixed the rerun-if-changed build script support on Windows. This is only relevant for those working within the git2-rs source tree. #916

0.14.2+1.5.1 - 2023-01-20

0.14.1...0.14.2

Changed

0.13.5+1.4.5 - 2023-01-20

0.13.4...0.13.5

Changed

0.14.1+1.5.0 - 2023-01-10

0.14.0...0.14.1

Added

  • Added variants to git_cert_ssh_raw_type_t. #909

0.14.0+1.5.0 - 2022-07-28

0.13.4...0.14.0

Added

  • Added bindings for ownership validation. #839

Changed

0.13.4+1.4.2 - 2022-05-10

0.13.3...0.13.4

Added

  • Added bindings for git_commit_body #835

0.13.3+1.4.2 - 2022-04-27

0.13.2...0.13.3

Changed

  • Updated the bundled libgit2 to 1.5.0-alpha. #822
  • Changed the pkg-config probe to restrict linking against a version of a system-installed libgit2 to a version less than 1.5.0. Previously it would allow any version above 1.4.0 which could pick up an API-breaking version. #817
  • When using pkg-config to locate libgit2, the system lib dirs are no longer added to the search path. #831
  • When using the zlib-ng-compat Cargo feature, libssh2-sys is no longer automatically included unless you also enable the ssh feature. #833

0.13.2+1.4.2 - 2022-03-10

0.13.1...0.13.2

Added

  • Added bindings for git_odb_exists_ext. #818

0.13.1+1.4.2 - 2022-02-28

0.13.0...0.13.1

Changed

0.13.0+1.4.1 - 2022-02-24

0.12.26...0.13.0

Changed