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:
parent
9168b73411
commit
1891933e59
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue