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 eaa0764940d80522b83ffe893bdd325ea82430db (tree)
parent 85a135a9b0f72f95ce99d0f46bf536d2b70a5dac
Author: Tim Pope <code@tpope.net>
Date:   Mon,  8 Jul 2019 15:39:22 -0400

Fix false positve matching :Glog abbreviated SHA

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

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -3399,16 +3399,16 @@ function! s:Log(cmd, bang, line1, line2, ...) abort let grepprg = &grepprg try let cdback = s:Cd(s:Tree()) - let format = before =~# ' -g\| --walk-reflogs' ? '%gd>%gs' : '%h>' . g:fugitive_summary_format + let format = before =~# ' -g\| --walk-reflogs' ? '%gd >%gs' : '%h >' . g:fugitive_summary_format let &grepprg = escape(s:UserCommand() . ' --no-pager log --no-color ' . - \ s:shellesc('--pretty=format:fugitive://'.s:Dir().'//%H'.path.'>'.format), '%#') + \ s:shellesc('--pretty=format:fugitive://'.s:Dir().'//%H'.path.' >'.format), '%#') if has('patch-8.0.1782') let module = '%o' else - let module = '%[^>]%#' + let module = '%[^<> :]%#' endif - let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f>' . module . '>%m,%-G%.%#' - silent! exe a:cmd . '!' . s:ShellExpand(before . after) + let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f >' . module . ' >%m,%-G%.%#' + silent! exe a:cmd . '!' . escape(s:ShellExpand(before . after), '|') redraw! copen wincmd p