Ok the situation is as follows:
I have a git branch in my local repository called 'feature-branch'.
This branch is git-svn enabled, it is tracking the local branch 'remotes/svn/branches/feature-branch' .
And this branch is tracking a SVN branch in an external repository.
Now I know how to determine which SVN branch is tracked, this can be done with git svn info
.
However, how can I determine which LOCAL remote branch is tracked by my feature branch?
Ie. how can I determine 'feature-branch' is tracking 'remotes/svn/branches/feature-branch' ?
With 'normal' tracking branches in GIT, I can do git branch -avv
and it will show for each branch with branch it is tracking. (Which is also pretty cumbersome...)
My end goal is to be able to show the commits which have not yet been pushed to the SVN repository. I can do this easily by running git log $remote..HEAD
.
But then I need to know what $remote
is ...