Note: This alias and the explanation below were created with Gemini 3, and manually edited for clarity and comprehensiveness.
This alias allows you to check whether a branch has been fully merged into a target branch (even if squash-merged or rebase-merged) and, if not, view the exact diff of what remains to be integrated.
Unlike a standard git diff, this approach:
- Ignores history divergence: It bypasses any changes that may have been added to the target branch on top of the point that your branch branched off from. In other words, it compares the final state of your branch against the target, as if you had done a
git rebasefollowed bygit diff.