Skip to content

⬆️ chore(deps)(deps): bump git2 from 0.20.4 to 0.21.0 in the git-stack group across 1 directory#157

Closed
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/cargo/dev/git-stack-2628f3b4bf
Closed

⬆️ chore(deps)(deps): bump git2 from 0.20.4 to 0.21.0 in the git-stack group across 1 directory#157
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/cargo/dev/git-stack-2628f3b4bf

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Bumps the git-stack group with 1 update in the / directory: git2.

Updates git2 from 0.20.4 to 0.21.0

Changelog

Sourced from git2's changelog.

0.21.0 - 2026-05-18

0.20.4...main

Added

  • Added experimental SHA256 repository support behind the new unstable-sha256 Cargo feature, along with *_ext API variants that accept an ObjectFormat. #1206
  • Added opts::set_cache_max_size() and opts::get_cached_memory(). #1188
  • Added Repository::object_format() and a new ObjectFormat enum. #1204
  • Added Repository::set_config(). #1208
  • Added merge_file() along with MergeFileInput. #1210
  • Added Repository::refdb_compress() for packing loose refs. #1221
  • Added public Refdb type, along with Repository::refdb() and Repository::set_refdb(). Repository::refdb_compress() now delegates to Refdb::compress(). #1228
  • Added Revspec::into_objects(). #1230
  • Added BlameHunk::final_committer(), BlameHunk::orig_committer(), BlameHunk::summary(), and BlameHunk::summary_bytes(). #1231
  • Implemented Clone for Reference. #1233
  • Added Repository::author_from_env() and Repository::committer_from_env(). #1237
  • Added impl From<Utf8Error> for Error. #1239

Changed

  • ❗ The ssh, https, and cred Cargo features are no longer enabled by default. Previously default = ["ssh", "https"]; now default = []. Enable them explicitly if you rely on credential helpers or transport support. #1168
  • CredentialHelper and the url dependency are now gated behind the new cred Cargo feature. Enabling ssh or https transitively enables cred. #1168
  • ❗ Updated to the 2021 edition. #1173
  • ❗ 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. #1241
  • BlameHunk::final_signature, BlameHunk::final_committer, BlameHunk::orig_signature, and BlameHunk::orig_committer now return Option to avoid segfaults when signature information is missing. #1254
  • Bumped requirement to libgit2-sys 0.18.4, which updates libgit2 to 1.9.3.

... (truncated)

Commits
  • dffaf27 Merge pull request #1256 from weihanglo/changelog
  • 84b9c76 docs: changelog for git2@0.21
  • 8c6dc4a Merge pull request #1206 from weihanglo/sha256-git2
  • 7bd145e fix: import ObjectFormat in one place
  • fc8af6a test(oid): split _ext to test each format separately
  • b9bde87 test: oid length sanity check
  • 57a68e0 feat(oid): impl Display for ObjectFormat
  • 7acee09 chore(ci): test git2 sha256 support
  • bdf5b7b fix: init example with --object-format option
  • 9fb4e6a refactor(util): drop unsafe from zeroed_raw_oid
  • Additional commits viewable in compare view

@dependabot dependabot Bot added chore Repo maintenance dependencies Dependency updates (dependabot) labels May 25, 2026
@dependabot dependabot Bot changed the title ⬆️ chore(deps)(deps): bump git2 from 0.20.4 to 0.21.0 in the git-stack group ⬆️ chore(deps)(deps): bump git2 from 0.20.4 to 0.21.0 in the git-stack group across 1 directory May 26, 2026
@dependabot dependabot Bot force-pushed the dependabot/cargo/dev/git-stack-2628f3b4bf branch 3 times, most recently from b4abddb to 0b10fd0 Compare May 29, 2026 08:44
@kbrdn1
Copy link
Copy Markdown
Owner

kbrdn1 commented May 29, 2026

Deferred out of the v0.8.0-rc.3 cut: git2 0.21 is a breaking accessor-API change (OptionResult across worktree.rs/cli.rs/github.rs/tui/app.rs, plus deprecated Oid::zero) and does not build as-is. Tracked as a proper source migration in #169 — this PR stays open until that lands.

Bumps the git-stack group with 1 update in the / directory: [git2](https://github.com/rust-lang/git2-rs).


Updates `git2` 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
  dependency-group: git-stack
...

Signed-off-by: dependabot[bot] <support@github.com>
@kbrdn1
Copy link
Copy Markdown
Owner

kbrdn1 commented Jun 1, 2026

Superseded by #207 (merged into dev), which performs the full git2 0.21 source migration — the breaking OptionResult accessor changes this lockfile-only bump leaves unbuilt. Tracked as #169. Closing as obsolete: git2 0.21.0 is now in Cargo.lock on dev.

@kbrdn1 kbrdn1 closed this Jun 1, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jun 1, 2026

This pull request was built based on a group rule. Closing it will not ignore any of these versions in future pull requests.

To ignore these dependencies, configure ignore rules in dependabot.yml

@dependabot dependabot Bot deleted the dependabot/cargo/dev/git-stack-2628f3b4bf branch June 1, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Repo maintenance dependencies Dependency updates (dependabot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant