dev/sg: improve diff evaluation
Created by: bobheadxi
Damn I'm not sure why this is so hard to get right, but this makes a minor improvement to running sg lint
on main
- instead of checking for the branch, we now check if merge-base is the same as your checked out ref, and check if your workspace is dirty.
Test plan
spew.Dump
some diffs. Seems right