get the name prefix of a git reference