edkolev / promptline.vim

Generate a fast shell prompt with powerline symbols and airline colors
MIT License
625 stars 54 forks source link

Get git current branch/tag name. #54

Closed anpol closed 7 years ago

anpol commented 8 years ago

Using solution from http://stackoverflow.com/a/18660163

Getting branch name using git symbolic-ref --short will not require additional parsing and permits branch names with embedded slash.