Skip to content

gix-ref v0.52.0

Compare
Choose a tag to compare
@Byron Byron released this 25 Apr 20:52
· 165 commits to main since this release
cc5b696

Bug Fixes

  • Adapt to changes in gix-actor
    Use the committer date and author date that are now backed by bytes and
    interpret these bytes into a gix_date::Time on demand.

  • make fs::walkdir_sorted_new() sort entries by paths literally
    This follows up 7b1b5bf. Since packed-refs
    appears to be sorted by full ref name, loose-refs should also be emitted in
    that order.

    The comparison function is copied from gix::diff::object::tree::EntryRef.
    Non-utf8 file names are simply mapped to "" on Windows. We could add some
    fallback, but callers can't handle such file names anyway.

New Features (BREAKING)

  • Use &RelativePath in *::prefixed() methods.
    That way there now is a type to capture requirements.

Bug Fixes (BREAKING)

  • prefixed ref iteration now properly deals with slashes.
    Previously, refs/heads/foo/bar would be listed when running
    repo.references()?.prefixed("refs/heads/b"). The code identified that
    the last component was not a directory and started to match it as a
    filename prefix for all files in all recursive directories, effectively
    matching refs/heads/**/b*.

    This commit fixes that bug but also allows to use a trailing / in the
    prefix, allowing to filter for refs/heads/foo/ and not get
    refs/heads/foo-bar as a result.

Commit Statistics

  • 29 commits contributed to the release.
  • 4 commits were understood as conventional.
  • 1 unique issue was worked on: #1928

Commit Details

view details
  • #1928
    • Make fs::walkdir_sorted_new() sort entries by paths literally (38b63c2)
    • Add minimal test for sorting issues of loose refs (c151b8d)
  • Uncategorized
    • Adjusting changelogs prior to release of gix-path v0.10.16, gix-features v0.42.0, gix-hash v0.17.1, gix-object v0.49.0, gix-glob v0.19.1, gix-quote v0.5.1, gix-attributes v0.25.1, gix-command v0.5.1, gix-packetline-blocking v0.18.4, gix-filter v0.19.0, gix-fs v0.14.1, gix-commitgraph v0.27.1, gix-revwalk v0.20.0, gix-traverse v0.46.0, gix-worktree-stream v0.21.0, gix-archive v0.21.0, gix-tempfile v17.0.1, gix-lock v17.0.1, gix-index v0.39.1, gix-config-value v0.14.13, gix-pathspec v0.10.1, gix-ignore v0.14.1, gix-worktree v0.40.1, gix-diff v0.52.0, gix-blame v0.2.0, gix-ref v0.52.0, gix-sec v0.10.13, gix-config v0.45.0, gix-prompt v0.10.1, gix-url v0.30.1, gix-credentials v0.28.1, gix-discover v0.40.0, gix-dir v0.14.0, gix-mailmap v0.27.0, gix-revision v0.34.0, gix-merge v0.5.0, gix-negotiate v0.20.0, gix-pack v0.59.0, gix-odb v0.69.0, gix-refspec v0.30.0, gix-shallow v0.3.1, gix-packetline v0.18.5, gix-transport v0.46.1, gix-protocol v0.50.0, gix-status v0.19.0, gix-submodule v0.19.0, gix-worktree-state v0.18.1, gix v0.72.0, gix-fsck v0.11.0, gitoxide-core v0.47.0, gitoxide v0.43.0, safety bump 7 crates (49fa9f3)
    • Release gix-date v0.10.0, gix-utils v0.2.1, gix-actor v0.35.0, gix-validate v0.9.5, gix-path v0.10.15, gix-features v0.42.0, gix-hash v0.17.1, gix-object v0.49.0, gix-glob v0.19.1, gix-quote v0.5.1, gix-attributes v0.25.0, gix-command v0.5.1, gix-packetline-blocking v0.18.4, gix-filter v0.19.0, gix-fs v0.14.0, gix-commitgraph v0.27.1, gix-revwalk v0.20.0, gix-traverse v0.46.0, gix-worktree-stream v0.21.0, gix-archive v0.21.0, gix-tempfile v17.0.1, gix-lock v17.0.1, gix-index v0.39.0, gix-config-value v0.14.13, gix-pathspec v0.10.1, gix-ignore v0.14.1, gix-worktree v0.40.0, gix-diff v0.52.0, gix-blame v0.2.0, gix-ref v0.51.0, gix-sec v0.10.13, gix-config v0.45.0, gix-prompt v0.10.1, gix-url v0.30.1, gix-credentials v0.28.1, gix-discover v0.40.0, gix-dir v0.14.0, gix-mailmap v0.27.0, gix-revision v0.34.0, gix-merge v0.5.0, gix-negotiate v0.20.0, gix-pack v0.59.0, gix-odb v0.69.0, gix-refspec v0.30.0, gix-shallow v0.3.1, gix-packetline v0.18.5, gix-transport v0.46.0, gix-protocol v0.50.0, gix-status v0.19.0, gix-submodule v0.19.0, gix-worktree-state v0.18.0, gix v0.72.0, gix-fsck v0.11.0, gitoxide-core v0.46.0, gitoxide v0.43.0, safety bump 30 crates (db0b095)
    • Update changelogs prior to release (0bf84db)
    • Merge pull request #1935 from pierrechevalier83/fix_1923 (3b1bef7)
    • J fmt (c3c6504)
    • Adapt to changes in gix-date and gix-actor (afdf1a5)
    • Apply feedback from discussion (70097c0)
    • Adapt to changes in gix-actor (b07f907)
    • Merge pull request #1968 from GitoxideLabs/dependabot/cargo/cargo-bd18780e40 (46227e6)
    • Bump the cargo group with 40 updates (06bf1e1)
    • Merge pull request #1921 from cruessler/introduce-repository-path (fdc06b1)
    • Refactor (294902e)
    • Use &RelativePath in *::prefixed() methods. (108a8ca)
    • Merge pull request #1957 from EliahKagan/run-ci/versioning (5823b22)
    • Adapt Cargo.toml files in workspace to gix-features bump (6315536)
    • Merge pull request #1954 from GitoxideLabs/fix-recursive-list-refs-prefix (71275d1)
    • Prefixed ref iteration now properly deals with slashes. (f538559)
    • Fix ci failures (57c9014)
    • Merge pull request #1949 from GitoxideLabs/dependabot/cargo/cargo-6893e2988a (b5e9059)
    • Bump the cargo group with 21 updates (68e6b2e)
    • Use Into<Cow<>> (507d682)
    • Rename prefix test branches (94faf51)
    • Handle trailing slash in ref list prefix filtering (3ca6811)
    • Merge pull request #1933 from GitoxideLabs/release-gix-features (1612c73)
    • Release gix-features v0.41.1 (fc5faf2)
    • Merge pull request #1931 from yuja/push-klrqpplwxrkx (7502b4a)
    • Merge pull request #1919 from GitoxideLabs/release (420e730)