aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/Powerline/Functions/fugitive.vim
blob: bb0013151bb74b32b473f1d08f66a4ec2804ee55 (plain)
1
2
3
4
5
6
7
function! Powerline#Functions#fugitive#GetBranch(symbol) " {{{
	let ret = fugitive#statusline()

	let ret = substitute(ret, '\c\v\[?GIT\(([a-z0-9\-_\./:]+)\)\]?', a:symbol .' \1', 'g')

	return ret
endfunction " }}}