Skip to content

Bump git2 from 0.20.0 to 0.20.1 #2567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2025
Merged

Conversation

naseschwarz
Copy link
Contributor

Bumps git2 from 0.20.0 to 0.20.1.


updated-dependencies:

  • dependency-name: git2 dependency-type: direct:production update-type: version-update:semver-patch ...

This Pull Request fixes/closes #{issue_num}.

It changes the following:

  • Bumps git2 from 0.20.0 to 0.20.1.

I followed the checklist:

  • I added unittests
  • I ran make check without errors
  • I tested the overall application
  • I added an appropriate item to the changelog

dependabot bot and others added 2 commits March 18, 2025 02:33
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.20.0 to 0.20.1.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
- [Commits](rust-lang/git2-rs@git2-0.20.0...git2-0.20.1)

---
updated-dependencies:
- dependency-name: git2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
git2-rs changed the lifetime of the result of Patch::hunk() to reference
the patch struct:
rust-lang/git2-rs#1141

Thus, returning a patch struct and a reference into it is flagged by the
borrow checker upon move when returning.

This patch avoids returning both alltogether by separating retrieving
and retrieving the patch.
@naseschwarz naseschwarz requested a review from vlad-anger March 18, 2025 08:04
@naseschwarz naseschwarz mentioned this pull request Mar 18, 2025
4 tasks
@naseschwarz naseschwarz marked this pull request as ready for review March 18, 2025 08:07
@extrawurst extrawurst merged commit a91132d into gitui-org:master Mar 18, 2025
21 checks passed
@extrawurst
Copy link
Collaborator

Awesome thank you!

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