Skip to content

feat(web): list recent branches on empty branch diff - #39

Draft
imfing wants to merge 1 commit into
mainfrom
worktree-branch-empty-recent
Draft

imfing wants to merge 1 commit into
mainfrom
worktree-branch-empty-recent

Conversation

@imfing

@imfing imfing commented Oct 8, 2026

Copy link
Copy Markdown
Owner

When a branch has no commits ahead of its base, the branch page now shows a single line (No commits ahead of main.) and lists up to five recently committed local branches as links to /branch?base=<base>&head=<name>. The base and the current head are skipped.

Server side, GET /api/branches gains a recent field (local branches ordered by commit date, newest first) with an optional ?recent=N limit. Added a git2 unit test for the ordering and limit.

Checks: oxlint, web build, cargo test (68 pass), clippy -D warnings, rustfmt.

When a branch has no commits ahead of its base, show a single-line
message and link up to five recently committed local branches so the
user can jump to another comparison. The branches API now also returns
a 'recent' list ordered by commit date (server-side via git2).
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.

1 participant