git: Figure out rebase branch name
git: Figure out rebase branch name

This adds support to determine the name of the branch being rebased by
inspecting `.git/rebase-{merge,apply}/head-name`.

abhinav/restack,abhinav/restack