Skip to content

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 13 Oct 13:23
· 86 commits to main since this release

git stack sync brings your uncommitted changes along when it moves you off a merged branch, and cleans up worktrees whose directory you deleted.

If you were on a branch whose PR had merged with any uncommitted change at all, sync kept the branch and told you to commit or stash first, even when git would have carried the change across a switch fine. Sync now switches to trunk the way git switch does, brings along what git can carry (untracked files too) and tells you; it only keeps the branch when the switch would overwrite something, and names those files.

Sync also notices worktrees whose directory was deleted by hand, runs git worktree prune for them and says which it forgot, so their merged branches get cleaned up like any other instead of being kept forever. Locked worktrees are left alone, but you'll be told to git worktree unlock if the directory has gone.

What's Changed

New features

  • Bring uncommitted changes along when sync moves you off a merged branch by @DomBlack in #32

Fixes

  • Forget worktrees whose directory was deleted before syncing by @DomBlack in #33

Full Changelog: v0.2.2...v0.2.3

Upgrading

git stack update swaps the binary in place, after checking the archive against
checksums.txt. New to git-stack? Start with the install guide.