From 5c3d30223bc4d3f6918ce0bcd5b924b5c5387b59 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 9 Jul 2019 04:33:05 -0400 Subject: [PATCH] Further tighten :Glog format --- autoload/fugitive.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 6310b24..904215b 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3416,15 +3416,15 @@ 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\t\t%gs" : "%h\t\t" . 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."\t\t".format), '%#') if has('patch-8.0.1782') let module = '%o' else - let module = '%[^<> :]%#' + let module = '%[^[:space:]]%#' endif - let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f >' . module . ' >%m,%-G%.%#' + let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f' . "\t\t" . module . "\t\t%m,%-G%.%#" silent! exe a:cmd . '!' . escape(s:ShellExpand(before . after), '|') redraw! copen