github Byron/gitoxide gix-v0.66.0
gix v0.66.0

27 days ago

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)

Don't miss a new gitoxide release

NewReleases is sending notifications on new releases.