You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance branch-cleanup with multi-layered merge detection
Improves the git:branch-cleanup command to detect merged branches using
multiple methods, preventing false negatives when branches are rebased,
squashed, or cherry-picked.
Key improvements:
- Added check_if_merged() function with 4 detection methods:
* Standard: git branch --merged (commits in main history)
* Merge-commit: searches merge commit messages
* Content-identical: compares content with git diff (catches rebases)
* Cherry-picked: detects equivalent patches with git cherry
- Enhanced categorization to show detection method used
- Updated examples to demonstrate new merge status labels
- Improved output format with explanatory notes for rebased branches
This fixes cases where branches show as unmerged despite having identical
content in main, such as when maintainers rebase PRs before merging.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments