get the name prefix of a git reference
Merge pull request #30 from macgitver/topic/RefsPrefix

get the name prefix of a git reference