What's new
-
Right-click context menu on History commits (#11): right-clicking a commit in the History list now opens a context menu with:
- Copy Commit Hash (full SHA) and Copy Commit Message (summary + body,
git logform). - Check Out the commit (detaches HEAD).
- Reset HEAD to… → Soft / Mixed / Hard submenu. The destructive Hard reset is confirmed via a popover before discarding work.
- Revert and Cherry-Pick the commit.
- Create New Branch / Tag from… the commit, via a name-prompt confirm flow (
NewRefPopover).
The six git actions extend
GitWorkbenchActionHandlerand flow throughGitWorkbenchStorelike every other intent (provider → reload → toast);CLIGitProvidermaps each to a git command andMockGitProvidermutates its fixtures so the mock-backed demo and previews stay live. - Copy Commit Hash (full SHA) and Copy Commit Message (summary + body,
Safety
git branch/git taguse a--terminator, so a leading-dash name can't be parsed as a git option.- Reset HEAD is disabled while History is browsing a non-checked-out branch — it moves the checked-out branch's pointer, so picking a commit from another branch's log could silently move/lose work. Check Out, Revert, and Cherry-Pick act non-destructively on the picked commit SHA and stay enabled.
Zero new dependencies; Swift 6 language mode preserved.
Full Changelog: 1.4.1...1.5.0