Allow for branch names with slashs in them.master
commitc01d4d7be1fcc5907a5bb8aadf71e9ec5f3e4b71
authorThomas Adam <thomas.adam22@gmail.com>
Sat, 4 Jul 2009 16:50:06 +0000 (4 17:50 +0100)
committerThomas Adam <thomas.adam22@gmail.com>
Sat, 4 Jul 2009 16:50:06 +0000 (4 17:50 +0100)
treee6f8e797440b8776ee18ae26504477bb7f0d45ec
parent87024ebc1b167d0f0b97fb1010ce14288b34bee5
Allow for branch names with slashs in them.

Previously, the assumption was that branch names wouldn't have slashes in
them.  This is incorrect, since branch names in the form:

TA/some-feature

Are quite common.  This fixes that by not splitting on "/" and simply
removing the "refs/head/" prefix from the HEAD file, which then leaves the
full branch name in its entirety.

Signed-off-by: Thomas Adam <thomas.adam22@gmail.com>
git-branch-info.vim