I like the easy approach of wrapping the git CLI.
Is there a simple method to get the ahead/behind count of the local compared to the remote branch? Like you get it with
git rev-list --count origin/main..main and git rev-list --count main..origin/main?
So far, I couldn't find one. Maybe just overlooked or is it missing?
I like the easy approach of wrapping the
gitCLI.Is there a simple method to get the ahead/behind count of the local compared to the remote branch? Like you get it with
git rev-list --count origin/main..mainandgit rev-list --count main..origin/main?So far, I couldn't find one. Maybe just overlooked or is it missing?