matcha
matcha copied to clipboard
Hard-coded default branch
Fails when e.g. 'main' is the default branch
With go-git there currently is no way to get the default branch: https://github.com/go-git/go-git/issues/510
What's actually wanted is not the 'default branch' but the currently checked out HEAD I think. Maybe with something like: https://github.com/emersion/matcha/compare/master...bbusse:matcha:use-current-head