fish-shell/fish-shell — pull request #228 by kballard (2012-07-14 02:02:46+00:00)
Title: Update __fish_git_prompt.fish to handle git-svn better

Git-svn remotes can have a prefix for their remotes. If I set a prefix
of 'svn/' then my remote trunk branch is called svn/trunk. Update the
script to use the `svn-remote.*.fetch key` to figure out how the 'trunk'
branch is mapped into the remotes namespace and apply this to the
current branch. This assumes branches are mapped into the same
namespace, which is likely. It also doesn't work for tags, but neither
did the old code.