Skip to content

GitWorkbench 1.5.0

Latest

Choose a tag to compare

@gpambrozio gpambrozio released this 30 Jun 21:51
30cceda

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 log form).
    • 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 GitWorkbenchActionHandler and flow through GitWorkbenchStore like every other intent (provider → reload → toast); CLIGitProvider maps each to a git command and MockGitProvider mutates its fixtures so the mock-backed demo and previews stay live.

Safety

  • git branch / git tag use 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