Skip to content

chore(deps): Update Rust crate git2 to >=0.16, <=0.20#387

Merged
epage merged 1 commit intomainfrom
renovate/git2-0.x
Mar 3, 2025
Merged

chore(deps): Update Rust crate git2 to >=0.16, <=0.20#387
epage merged 1 commit intomainfrom
renovate/git2-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 1, 2025

This PR contains the following updates:

Package Type Update Change
git2 dependencies minor >=0.16, <=0.19 -> >=0.16, <=0.20

Release Notes

rust-lang/git2-rs (git2)

v0.20.0

Compare Source

0.19.0...0.20.0

Added
  • Debug is now implemented for transport::Service
    #​1074
  • Added Repository::commondir
    #​1079
  • Added Repository::merge_base_octopus
    #​1088
  • Restored impls for PartialOrd, Ord, and Hash for bitflags types that were inadvertently removed in a prior release.
    #​1096
  • Added CheckoutBuilder::disable_pathspec_match
    #​1107
  • Added PackBuilder::write
    #​1110
Changed
  • ❗ Updated to libgit2 1.9.0
    #​1111
  • ❗ Removed the ssh_key_from_memory Cargo feature, it was unused.
    #​1087
  • ❗ Errors from Tree::walk are now correctly reported to the caller.
    #​1098
  • ❗ The trace_set callback now takes a &[u8] instead of a &str.
    #​1071
  • Error::last_error now returns Error instead of Option<Error>.
    #​1072
Fixed
  • Fixed OdbReader::read return value.
    #​1061
  • When a credential helper executes a shell command, don't pop open a console window on Windows.
    #​1075

v0.19.0

Compare Source

0.18.3...0.19.0

Added
  • 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.
    #​1052
Changed
Fixed
  • Fixed some callbacks to relay the error from the callback to libgit2.
    #​1043

v0.18.3

Compare Source

0.18.2...0.18.3

Added
  • Added opts:: functions to get / set libgit2 mwindow options
    #​1035
Changed
  • Updated examples to use clap instead of structopt
    #​1007

v0.18.2

Compare Source

0.18.1...0.18.2

Added
  • Added opts::set_ssl_cert_file and opts::set_ssl_cert_dir for setting Certificate Authority file locations.
    #​997
  • Added TreeIter::nth which makes jumping ahead in the iterator more efficient.
    #​1004
  • Added Repository::find_commit_by_prefix to find a commit by a shortened hash.
    #​1011
  • Added Repository::find_tag_by_prefix to find a tag by a shortened hash.
    #​1015
  • Added Repository::find_object_by_prefix to find an object by a shortened hash.
    #​1014
Changed

v0.18.1

Compare Source

0.18.0...0.18.1

Added
  • Added FetchOptions::depth to set the depth of a fetch or clone, adding support for shallow clones.
    #​979
Fixed
  • Fixed an internal data type (TreeWalkCbData) to not assume it is a transparent type while casting.
    #​989
  • Fixed so that DiffPatchidOptions and StashSaveOptions are publicly exported allowing the corresponding APIs to actually be used.
    #​988

v0.18.0

Compare Source

0.17.2...0.18.0

Added
  • Added Blame::blame_buffer for getting blame data for a file that has been modified in memory.
    #​981
Changed
  • Updated to libgit2 1.7.0.
    #​968
  • Updated to libgit2 1.7.1.
    #​982
  • Switched from bitflags 1.x to 2.1. This brings some small changes to types generated by bitflags.
    #​973
  • Changed Revwalk::with_hide_callback to take a mutable reference to its callback to enforce type safety.
    #​970
  • Implemented FusedIterator for many iterators that can support it.
    #​955
Fixed
  • Fixed builds with cargo's -Zminimal-versions.
    #​960

v0.17.2

Compare Source

0.17.1...0.17.2

Added
  • Added support for stashing with options (which can support partial stashing).
    #​930

v0.17.1

Compare Source

0.17.0...0.17.1

Changed

v0.17.0

Compare Source

0.16.1...0.17.0

Added
  • Added IntoIterator implementation for Statuses.
    #​880
  • Added Reference::symbolic_set_target
    #​893
  • Added Copy, Clone, Debug, PartialEq, and Eq implementations for AutotagOption and FetchPrune.
    #​889
  • Added Eq and PartialEq implementations for Signature.
    #​890
  • Added Repository::discover_path.
    #​883
  • Added Submodule::repo_init.
    #​914
  • Added Tag::is_valid_name.
    #​882
  • Added Repository::set_head_bytes.
    #​931
  • Added the Indexer type which is a low-level API for storing and indexing pack files.
    #​911
  • Added Index::find_prefix.
    #​903
  • Added support for the deprecated group-writeable blob mode. This adds a new variant to FileMode.
    #​887
  • Added PushCallbacks::push_negotiation callback and the corresponding PushUpdate type for getting receiving information about the updates to perform.
    #​926
Changed
  • 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
  • Updated libssh2-sys from 0.2 to 0.3.
    This brings in numerous changes, including SHA2 algorithm support with RSA.
    #​919
  • Changed RemoteCallbacks::credentials callback error handler to correctly set the libgit2 error class.
    #​918
  • DiffOptions::flag now takes a git_diff_option_t type.
    #​935

v0.16.1

Compare Source

0.16.0...0.16.1

Changed

Configuration

📅 Schedule: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Mar 1, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package git2@0.16.0 --precise 0.20.0
    Updating crates.io index
error: failed to select a version for the requirement `git2 = ">=0.16, <=0.18"`
candidate versions found which didn't match: 0.20.0
location searched: crates.io index
required by package `git-branch-stash v0.10.1`
    ... which satisfies dependency `git-branch-stash = "^0.10.1"` (locked to 0.10.1) of package `git-stack v0.10.18 (/tmp/renovate/repos/github/gitext-rs/git-stack)`

@coveralls
Copy link

Pull Request Test Coverage Report for Build 13599900331

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 29.227%

Totals Coverage Status
Change from base Build 13573705971: 0.07%
Covered Lines: 1630
Relevant Lines: 5577

💛 - Coveralls

@epage epage merged commit c6c3427 into main Mar 3, 2025
16 of 17 checks passed
@epage epage deleted the renovate/git2-0.x branch March 3, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants