mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Improve robustness of status --porcelain=v1 parsing
References https://github.com/tpope/vim-fugitive/issues/1388
This commit is contained in:
@@ -1673,6 +1673,9 @@ function! fugitive#BufReadStatus() abort
|
|||||||
throw 'fugitive: ' . message
|
throw 'fugitive: ' . message
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
while get(output, 0, '') =~# '^\l\+:'
|
||||||
|
call remove(output, 0)
|
||||||
|
endwhile
|
||||||
let head = matchstr(output[0], '^## \zs\S\+\ze\%($\| \[\)')
|
let head = matchstr(output[0], '^## \zs\S\+\ze\%($\| \[\)')
|
||||||
let pull = ''
|
let pull = ''
|
||||||
if head =~# '\.\.\.'
|
if head =~# '\.\.\.'
|
||||||
|
|||||||
Reference in New Issue
Block a user