feat: add branch divergence detection with diverge badge and API handlers - #39
Merged
Merged
Conversation
- 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
Release v0.3.0
- 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
force-pushed
the
feature/git-commit-history-graph
branch
from
May 27, 2026 06:12
27677c9 to
1c80af5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add branch divergence detection feature including divergent badge rendering and refresh scheduling.