Skip to content

Update git2 to 0.21 across crates#2962

Merged
extrawurst merged 5 commits into
gitui-org:masterfrom
cruessler:update-git2-to-0-21
Jun 16, 2026
Merged

Update git2 to 0.21 across crates#2962
extrawurst merged 5 commits into
gitui-org:masterfrom
cruessler:update-git2-to-0-21

Conversation

@cruessler

@cruessler cruessler commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

This PR updates the git2 dependency to 0.21.

Among other things, this brings a new feature flag: unstable-sha256. This feature flag is not enabled in this PR. This could be done in a follow-up.

Breaking changes in upstream changelog: https://github.com/rust-lang/git2-rs/blob/main/CHANGELOG.md#changed

Relevant for gitui:

  • “The ssh, https, and cred Cargo features are no longer enabled by default.” asyncgit now explicitly enables https.
  • “Many string accessors that previously returned Option<&str> now return Result<&str, Error> or Result<Option<&str>, Error>, so callers can distinguish a missing value from a non-UTF-8 one.” In this PR, I’ve decided to keep the existing behaviour by treating Err values as None. Let me know if you want any changes here!

@cruessler cruessler marked this pull request as ready for review June 16, 2026 06:17
@cruessler cruessler requested a review from extrawurst June 16, 2026 06:19
@extrawurst

Copy link
Copy Markdown
Collaborator

Awesome! Thank you!

@extrawurst extrawurst merged commit 9613d15 into gitui-org:master Jun 16, 2026
22 checks passed
@cruessler cruessler mentioned this pull request Jun 17, 2026
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