github Byron/gitoxide gix-ref-v0.27.2
gix-ref v0.27.2

18 months ago

Bug Fixes

  • uncategorized refs should not be per-worktree
    When creating a new ref from using a Repository instantiated from a linked
    worktree, if the ref did not fit one of the well-known categories, it would be
    incorrectly stored as a per-worktree reference instead of a shared reference.

    For example, the reference "refs/stacks/linked" does not fit any of the well
    known categories. According to git-worktree(1), this ref should be shared
    across all worktrees; i.e. located at $GIT_COMMON_DIR/refs/stacks/linked and
    not in $GIT_COMMON_DIR/worktrees/linked/refs/stacks/linked.

    This change tweaks the control flow so that uncategorized refs correctly
    fallback to being relative to commondir while still placing refs that are
    supposed to be per-worktree in the per-worktree location.

Commit Statistics

  • 4 commits contributed to the release.
  • 13 days passed between releases.
  • 1 commit was understood as conventional.
  • 0 issues like '(#ID)' were seen in commit messages

Thanks Clippy

Clippy helped 1 time to make code idiomatic.

Commit Details

view details
  • Uncategorized
    • Thanks clippy (fa98a92)
    • Merge branch 'fix-worktree-shared-refs' (9531b11)
    • Add more tests to validate uncategorized refs in the context of worktrees (de66453)
    • Uncategorized refs should not be per-worktree (3d6832c)

Don't miss a new gitoxide release

NewReleases is sending notifications on new releases.