mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 04:53:45 -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
|
||||
endif
|
||||
|
||||
while get(output, 0, '') =~# '^\l\+:'
|
||||
call remove(output, 0)
|
||||
endwhile
|
||||
let head = matchstr(output[0], '^## \zs\S\+\ze\%($\| \[\)')
|
||||
let pull = ''
|
||||
if head =~# '\.\.\.'
|
||||
|
||||
Reference in New Issue
Block a user