This post now on http://devkini.xy/git-finding-parent-branch/