I need a machine parsable way of comparing the current branch to the local copy of the tracking branch.
These are the ideas I've tried, with their caveats:
- git status: not guaranteed to stay the same between different versions of git
- git status --porcelain: doesn't output the required information
- compare head of branch to head of origin/branch: Can we guarantee that the tracking branch is on "origin"?
Thanks for any ideas