motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit f6acae50ea4d8ec1bb1497cb886d80298b54831b (tree)
parent 0356edf6b8a82d6654e94d1669c9d9dd6c5507ab
Author: Tim Pope <code@tpope.net>
Date:   Sun, 27 Oct 2019 18:53:19 -0400

Improve robustness of status --porcelain=v1 parsing

References https://github.com/tpope/vim-fugitive/issues/1388

Diffstat:
Mautoload/fugitive.vim | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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 =~# '\.\.\.'