Skip to content
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

chore(deps): update rust crate gix to 0.66.0 #1175

Merged
merged 2 commits into from
Sep 15, 2024
Merged

chore(deps): update rust crate gix to 0.66.0 #1175

merged 2 commits into from
Sep 15, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 22, 2024

This PR contains the following updates:

Package Type Update Change
gix dependencies minor 0.64.0 -> 0.66.0

Release Notes

Byron/gitoxide (gix)

v0.66.0: gix v0.66.0

Compare Source

New Features
  • add objects::tree::diff::Platform::stats() to quickly obtain diff-stats.
    This function is inspired by git2 which also makes it very simple to obtain.
  • allow threaded-handling of tree-diff changes.
    This works by providing Change::detach() and ChangeDetached::attach().
  • add Reference::follow_to_object()
    It's an equivalent to git2::Reference::resolve().`
  • add Repository::diff_resource_cache_for_tree_diff()
  • add Reference::peel_to_kind()
    Make it easy to follow a ref and peel it to a given object type.
    Additional peel_to_<kind>() shortcuts are also provided, with
    the same name as in git2.
  • add Repository::find_*() methods for every object type.
  • add Repository::compute_object_cache_size_for_tree_diffs().
    With it it's easier to obtain reasonable object cache sizes as optimized
    for tree-diffs.
  • remote::Name::to_owned() to get a static version of it.
    Also, add optional serde support.
  • Reference::remote_name() now also provides valid remote names for local tracking branches.
  • add Reference::peel_to_id_in_place_packed() to allow passing a packed-buffer snapshot.
    This is useful for speeding up reference lookups as otherwise, it will have to validate the packed-buffer
    snapshot didn't change internally each time a ref is peeled.
  • add remote::Names as shortcut to the value returned for all remote names.
Bug Fixes
  • similarity detection
    Previously it would incorrectly count only the last batch of removed bytes, and now it will count all of them. This leads to realistic results with complex diffs, even though it's probably still not en-par with Git which uses more complex heuristics.

  • prevent panic in Repository::rev_parse_single() when HEAD was invalid.
    When using a refspec like HEAD:file.

  • do not automatically use a parallel directory walk.
    This reduces dependencies and can speed-up typical ref-walks as these
    don't benefit from this many threads - the overhead here usually outweighs
    the benefit.

    This can be turned back on based on the expected workload.

Other
  • make tree-diff more easily discoverable when coming from git2
Bug Fixes (BREAKING)
  • better peeling performance for reference traversal.
    This is done by keeping a packed-buffer around and reusing it, instead
    of re-checking it every time.

    For this to work, the peeled() function on the reference::Iter can now fail
    as it has to open a packed-refs snapshot.

Commit Statistics
  • 41 commits contributed to the release over the course of 28 calendar days.
  • 29 days passed between releases.
  • 16 commits were understood as conventional.
  • 2 unique issues were worked on: #​1508, #​1524
Commit Details
view details
  • #​1508
    • Reproduce panic when parsing refspecs (17bd32a)
  • #​1524
    • Add a real-world test to reproduce an issue discovered in jj (7ef1e88)
  • Uncategorized
    • Release gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 (4fe330e)
    • Release gix-attributes v0.22.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-config-value v0.14.8, gix-tempfile v14.0.2, gix-ref v0.46.0, gix-sec v0.10.8, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-pathspec v0.7.7, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 (f2b522d)
    • Release gix-glob v0.16.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-config-value v0.14.8, gix-tempfile v14.0.2, gix-ref v0.46.0, gix-sec v0.10.8, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-pathspec v0.7.7, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 (a65a17f)
    • Release gix-date v0.9.0, gix-actor v0.31.6, gix-validate v0.9.0, gix-object v0.43.0, gix-path v0.10.10, gix-attributes v0.22.4, gix-command v0.3.9, gix-packetline-blocking v0.17.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-ref v0.46.0, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0, safety bump 25 crates (d19af16)
    • Prepare changelogs prior to release (0f25841)
    • Merge branch 'improvements' (9ed2b24)
    • Similarity detection (6990afd)
    • Fix similarity detection (f8c5d9c)
    • Better peeling performance for reference traversal. (ba72ee0)
    • Merge branch 'improvements' (242fedc)
    • Use improved gix-diff API for better buffer handling (f944e49)
    • Add objects::tree::diff::Platform::stats() to quickly obtain diff-stats. (e079250)
    • Allow threaded-handling of tree-diff changes. (b291de0)
    • Add Reference::follow_to_object() (d986b2b)
    • Add Repository::diff_resource_cache_for_tree_diff() (6c6f946)
    • Add Reference::peel_to_kind() (cdaba84)
    • Adapt to changes in gix-ref (d296ee8)
    • Adapt to changes in gix-ref (5464bfb)
    • Add Repository::find_*() methods for every object type. (98bcb14)
    • Add Repository::compute_object_cache_size_for_tree_diffs(). (63c7a03)
    • Make tree-diff more easily discoverable when coming from git2 (26748dd)
    • Merge pull request #​1529 from Byron/better-copy-detection (7b7902e)
    • Remove #[momo] directive as it seems to prevent auto-completion in IDEs. (3a339da)
    • Merge pull request #​1521 from mvlabat/fix-dir-filename-tracking (12251eb)
    • Fix dir name tracking in the FileName mode (63936e5)
    • Merge branch 'fix-panic' (0b28297)
    • Prevent panic in Repository::rev_parse_single() when HEAD was invalid. (e74095e)
    • Merge branch 'improvements' (7dff447)
    • remote::Name::to_owned() to get a static version of it. (8a27454)
    • Merge branch 'improvements' (29898e3)
    • Reference::remote_name() now also provides valid remote names for local tracking branches. (6ac2867)
    • Add Reference::peel_to_id_in_place_packed() to allow passing a packed-buffer snapshot. (c612440)
    • Do not automatically use a parallel directory walk. (6f2eb91)
    • Add remote::Names as shortcut to the value returned for all remote names. (7c8f409)
    • Merge branch 'ag/jiff' (5871fb1)
    • Assure the next release is breaking (9fd1090)
    • Release gix-credentials v0.24.4 (f6a4eb9)
    • Merge branch 'fix-clean' (33eacfb)
    • Adapt to changes in gix-dir (37c2852)

v0.65.0: gix v0.65.0

Compare Source

New Features
  • add objects::tree::diff::Platform::stats() to quickly obtain diff-stats.
    This function is inspired by git2 which also makes it very simple to obtain.
  • allow threaded-handling of tree-diff changes.
    This works by providing Change::detach() and ChangeDetached::attach().
  • add Reference::follow_to_object()
    It's an equivalent to git2::Reference::resolve().`
  • add Repository::diff_resource_cache_for_tree_diff()
  • add Reference::peel_to_kind()
    Make it easy to follow a ref and peel it to a given object type.
    Additional peel_to_<kind>() shortcuts are also provided, with
    the same name as in git2.
  • add Repository::find_*() methods for every object type.
  • add Repository::compute_object_cache_size_for_tree_diffs().
    With it it's easier to obtain reasonable object cache sizes as optimized
    for tree-diffs.
  • remote::Name::to_owned() to get a static version of it.
    Also, add optional serde support.
  • Reference::remote_name() now also provides valid remote names for local tracking branches.
  • add Reference::peel_to_id_in_place_packed() to allow passing a packed-buffer snapshot.
    This is useful for speeding up reference lookups as otherwise, it will have to validate the packed-buffer
    snapshot didn't change internally each time a ref is peeled.
  • add remote::Names as shortcut to the value returned for all remote names.
Bug Fixes
  • similarity detection
    Previously it would incorrectly count only the last batch of removed bytes, and now it will count all of them. This leads to realistic results with complex diffs, even though it's probably still not en-par with Git which uses more complex heuristics.

  • prevent panic in Repository::rev_parse_single() when HEAD was invalid.
    When using a refspec like HEAD:file.

  • do not automatically use a parallel directory walk.
    This reduces dependencies and can speed-up typical ref-walks as these
    don't benefit from this many threads - the overhead here usually outweighs
    the benefit.

    This can be turned back on based on the expected workload.

Other
  • make tree-diff more easily discoverable when coming from git2
Bug Fixes (BREAKING)
  • better peeling performance for reference traversal.
    This is done by keeping a packed-buffer around and reusing it, instead
    of re-checking it every time.

    For this to work, the peeled() function on the reference::Iter can now fail
    as it has to open a packed-refs snapshot.

Commit Statistics
  • 41 commits contributed to the release over the course of 28 calendar days.
  • 29 days passed between releases.
  • 16 commits were understood as conventional.
  • 2 unique issues were worked on: #​1508, #​1524
Commit Details
view details
  • #​1508
    • Reproduce panic when parsing refspecs (17bd32a)
  • #​1524
    • Add a real-world test to reproduce an issue discovered in jj (7ef1e88)
  • Uncategorized
    • Release gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 (4fe330e)
    • Release gix-attributes v0.22.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-config-value v0.14.8, gix-tempfile v14.0.2, gix-ref v0.46.0, gix-sec v0.10.8, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-pathspec v0.7.7, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 (f2b522d)
    • Release gix-glob v0.16.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-config-value v0.14.8, gix-tempfile v14.0.2, gix-ref v0.46.0, gix-sec v0.10.8, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-pathspec v0.7.7, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0 (a65a17f)
    • Release gix-date v0.9.0, gix-actor v0.31.6, gix-validate v0.9.0, gix-object v0.43.0, gix-path v0.10.10, gix-attributes v0.22.4, gix-command v0.3.9, gix-packetline-blocking v0.17.5, gix-filter v0.12.0, gix-fs v0.11.3, gix-revwalk v0.14.0, gix-traverse v0.40.0, gix-worktree-stream v0.14.0, gix-archive v0.14.0, gix-ref v0.46.0, gix-config v0.39.0, gix-prompt v0.8.7, gix-url v0.27.5, gix-credentials v0.24.5, gix-ignore v0.11.4, gix-index v0.34.0, gix-worktree v0.35.0, gix-diff v0.45.0, gix-discover v0.34.0, gix-dir v0.7.0, gix-mailmap v0.23.6, gix-negotiate v0.14.0, gix-pack v0.52.0, gix-odb v0.62.0, gix-packetline v0.17.6, gix-transport v0.42.3, gix-protocol v0.45.3, gix-revision v0.28.0, gix-refspec v0.24.0, gix-status v0.12.0, gix-submodule v0.13.0, gix-worktree-state v0.12.0, gix v0.65.0, gix-fsck v0.5.0, gitoxide-core v0.40.0, gitoxide v0.38.0, safety bump 25 crates (d19af16)
    • Prepare changelogs prior to release (0f25841)
    • Merge branch 'improvements' (9ed2b24)
    • Similarity detection (6990afd)
    • Fix similarity detection (f8c5d9c)
    • Better peeling performance for reference traversal. (ba72ee0)
    • Merge branch 'improvements' (242fedc)
    • Use improved gix-diff API for better buffer handling (f944e49)
    • Add objects::tree::diff::Platform::stats() to quickly obtain diff-stats. (e079250)
    • Allow threaded-handling of tree-diff changes. (b291de0)
    • Add Reference::follow_to_object() (d986b2b)
    • Add Repository::diff_resource_cache_for_tree_diff() (6c6f946)
    • Add Reference::peel_to_kind() (cdaba84)
    • Adapt to changes in gix-ref (d296ee8)
    • Adapt to changes in gix-ref (5464bfb)
    • Add Repository::find_*() methods for every object type. (98bcb14)
    • Add Repository::compute_object_cache_size_for_tree_diffs(). (63c7a03)
    • Make tree-diff more easily discoverable when coming from git2 (26748dd)
    • Merge pull request #​1529 from Byron/better-copy-detection (7b7902e)
    • Remove #[momo] directive as it seems to prevent auto-completion in IDEs. (3a339da)
    • Merge pull request #​1521 from mvlabat/fix-dir-filename-tracking (12251eb)
    • Fix dir name tracking in the FileName mode (63936e5)
    • Merge branch 'fix-panic' (0b28297)
    • Prevent panic in Repository::rev_parse_single() when HEAD was invalid. (e74095e)
    • Merge branch 'improvements' (7dff447)
    • remote::Name::to_owned() to get a static version of it. (8a27454)
    • Merge branch 'improvements' (29898e3)
    • Reference::remote_name() now also provides valid remote names for local tracking branches. (6ac2867)
    • Add Reference::peel_to_id_in_place_packed() to allow passing a packed-buffer snapshot. (c612440)
    • Do not automatically use a parallel directory walk. (6f2eb91)
    • Add remote::Names as shortcut to the value returned for all remote names. (7c8f409)
    • Merge branch 'ag/jiff' (5871fb1)
    • Assure the next release is breaking (9fd1090)
    • Release gix-credentials v0.24.4 (f6a4eb9)
    • Merge branch 'fix-clean' (33eacfb)
    • Adapt to changes in gix-dir (37c2852)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR is behind base branch, 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.

Copy link

netlify bot commented Aug 22, 2024

Deploy Preview for knope canceled.

Name Link
🔨 Latest commit 27853ad
🔍 Latest deploy log https://app.netlify.com/sites/knope/deploys/66e633b4bcd55d000895d619

@renovate renovate bot force-pushed the renovate/gix-0.x branch 7 times, most recently from 9f47769 to 054009b Compare August 29, 2024 22:07
@renovate renovate bot force-pushed the renovate/gix-0.x branch 2 times, most recently from 1e93605 to e499233 Compare August 30, 2024 23:08
@renovate renovate bot force-pushed the renovate/gix-0.x branch 5 times, most recently from c55961d to 85e71aa Compare September 15, 2024 00:13
dbanty
dbanty previously approved these changes Sep 15, 2024
Copy link
Contributor Author

renovate bot commented Sep 15, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@dbanty dbanty added this pull request to the merge queue Sep 15, 2024
Merged via the queue into main with commit e666475 Sep 15, 2024
8 checks passed
@dbanty dbanty deleted the renovate/gix-0.x branch September 15, 2024 01:29
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.

1 participant