branch: better display of branch for both hg and git

If a file is edited inside a git repository, which lies within a git
repository, the branch extensions shows 'gitmaster | hgdefault'

To make it more obvious, that we are looking into both repositories
here, use 'git:master | hg:default'

closes #1482
This commit is contained in:
Christian Brabandt 2017-06-20 17:47:07 +02:00
parent 9168b73411
commit 1891933e59
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -303,7 +303,7 @@ function! airline#extensions#branch#head()
if !empty(b:airline_head)
let b:airline_head .= ' | '
endif
let b:airline_head .= (len(l:heads) > 1 ? s:vcs_config[l:vcs].exe : '') . s:format_name(l:heads[l:vcs])
let b:airline_head .= (len(l:heads) > 1 ? s:vcs_config[l:vcs].exe .':' : '') . s:format_name(l:heads[l:vcs])
let b:airline_head .= b:buffer_vcs_config[vcs].untracked
endfor