Skip to content

feat: add branch divergence detection with diverge badge and API handlers - #39

Merged
linletian merged 8 commits into
developfrom
feature/git-commit-history-graph
May 27, 2026
Merged

feat: add branch divergence detection with diverge badge and API handlers#39
linletian merged 8 commits into
developfrom
feature/git-commit-history-graph

Conversation

@linletian

Copy link
Copy Markdown
Owner

Add branch divergence detection feature including divergent badge rendering and refresh scheduling.

linletian added 8 commits May 25, 2026 16:58
- build(release): add CGO_ENABLED=0 for pure-Go cross-compilation
- build(release): remove -w ldflag to preserve macOS code signing compatibility
- build(release): add optional macOS codesign + notarization job
- docs: add v0.3.0 changelog entry
- docs: add Apple Silicon quarantine troubleshooting to README
- effective head calculation: prefer origin if ahead > local, otherwise
  pick the most-ahead remote among non-origin remotes
- aheadCount via git rev-list --count local..effective
- branchExists check for develop branch detection
- CheckDiverged returns DivergedResult map per upstream (main/develop)
- register GET /api/worktrees/diverged (batch) and GET /api/worktree/diverged (single)
- handleWorktreesDiverged: iterate all worktrees, call CheckDiverged per branch
- handleWorktreeDiverged: resolve worktree path by id, reuse status handler logic
- main worktree always gets empty DivergedResult (isMain branch returns early)
- CurrentBranch failure returns 500 instead of silent empty result
@linletian
linletian force-pushed the feature/git-commit-history-graph branch from 27677c9 to 1c80af5 Compare May 27, 2026 06:12
@linletian
linletian merged commit f93c109 into develop May 27, 2026
2 checks passed
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