edkolev / promptline.vim

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

Get git current branch/tag name. #61

Open anpol opened 7 years ago

anpol commented 7 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.

Before this change:

This PR was previously opened as #54