Skip to content

Feature/active branch - #6

Merged
cheat2001 merged 2 commits into
cheat2001:mainfrom
manutkira:Feature/ActiveBranch
Sep 7, 2026
Merged

Feature/active branch#6
cheat2001 merged 2 commits into
cheat2001:mainfrom
manutkira:Feature/ActiveBranch

Conversation

@manutkira

@manutkira manutkira commented Sep 7, 2026

Copy link
Copy Markdown

What & why

Screenshots

Checklist

  • pnpm typecheck && pnpm test pass
  • cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test pass (if Rust changed)
  • New engine functions have integration tests in tests/git_engine.rs
  • Mutating operations go through the undo tracked() wrapper where undoable
  • Colors use design tokens only (no hex in components)
  • CLAUDE.md updated if conventions/architecture changed

NuthTB and others added 2 commits September 7, 2026 15:47
…emote

The tick was the only thing marking where you stand. The sidebar row for the
checked-out branch now carries the accent tint, a gold left edge and a bolder
name, and its chip in the graph is filled solid instead of tinted like every
other branch.

When a local branch and its remote have drifted apart their chips sit on
different commits; double-clicking the remote one asks whether to hard-reset
the local branch onto it — naming the commits that would be lost — or cancel.
A branch that is not checked out is checked out first as its own undo entry,
so undoing twice restores both steps; a branch held by another worktree is
refused. The demo repo now puts origin/main two commits behind main so the
split is real there too.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Reading a diff and wanting the rest of the story meant backing out to the
file's row menu or the command palette. A history button now sits beside the
whole-file toggle and swaps the center panel to that file's history.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

@cheat2001 cheat2001 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged this into 0.11.0 with one change on top: the reset prompt now only appears when the local branch has its own commits, a branch that's merely behind gets a plain checkout that fast-forwards it. Thanks for the history button in the diff header, that one's already saving me clicks.

@cheat2001
cheat2001 merged commit 30a75c6 into cheat2001:main Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants