chore(deps): bump git2 from 0.20.4 to 0.21.0 - #68
Conversation
86aa0ff to
ed77644
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ed7764499b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| anyhow = "1" | ||
| clap = { version = "4.5", features = ["derive"] } | ||
| git2 = "0.20" | ||
| git2 = "0.21" |
There was a problem hiding this comment.
Update git2 call sites for 0.21 API
In git2 0.21, Reference::shorthand() returns Result<&str, Error> instead of Option<&str>; this repo still has branch_name returning Ok(reference.shorthand().map(str::to_string)) in src/foundation/core/git.rs:202, so enabling git2 = "0.21" makes all builds fail with a type mismatch until that call is changed to handle the new Result.
Useful? React with 👍 / 👎.
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.20.4 to 0.21.0. - [Changelog](https://github.com/rust-lang/git2-rs/blob/main/CHANGELOG.md) - [Commits](rust-lang/git2-rs@git2-0.20.4...git2-0.21.0) --- updated-dependencies: - dependency-name: git2 dependency-version: 0.21.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
ed77644 to
fd0929f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fd0929f710
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| anyhow = "1" | ||
| clap = { version = "4.5", features = ["derive"] } | ||
| git2 = "0.20" | ||
| git2 = "0.21" |
There was a problem hiding this comment.
Update status path call sites for git2 0.21
With this dependency bump, git2::StatusEntry::path() now returns Result<&str, git2::Error> rather than Option<&str>. The existing uses in src/foundation/core/git.rs still pattern-match Some/None in repo_files and dirty_counts (for example lines 202 and 375), so builds will fail once this git2 = "0.21" dependency is resolved; update those call sites to handle the Result as part of the bump.
Useful? React with 👍 / 👎.
Bumps git2 from 0.20.4 to 0.21.0.
Changelog
Sourced from git2's changelog.
... (truncated)
Commits
dffaf27Merge pull request #1256 from weihanglo/changelog84b9c76docs: changelog for git2@0.218c6dc4aMerge pull request #1206 from weihanglo/sha256-git27bd145efix: importObjectFormatin one placefc8af6atest(oid): split_extto test each format separatelyb9bde87test: oid length sanity check57a68e0feat(oid): impl Display for ObjectFormat7acee09chore(ci): test git2 sha256 supportbdf5b7bfix: init example with--object-formatoption9fb4e6arefactor(util): dropunsafefromzeroed_raw_oid