mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Use appropriate message for :Glog --walk-reflogs
This commit is contained in:
@@ -2836,8 +2836,9 @@ function! s:Log(cmd, bang, line1, line2, ...) abort
|
|||||||
let grepprg = &grepprg
|
let grepprg = &grepprg
|
||||||
try
|
try
|
||||||
let cdback = s:Cd(s:Tree())
|
let cdback = s:Cd(s:Tree())
|
||||||
|
let format = before =~# ' -g\| --walk-reflogs' ? '%gD %gs' : g:fugitive_summary_format
|
||||||
let &grepprg = escape(s:UserCommand() . ' --no-pager log --no-color ' .
|
let &grepprg = escape(s:UserCommand() . ' --no-pager log --no-color ' .
|
||||||
\ s:shellesc('--pretty=format:fugitive://'.b:git_dir.'//%H'.path.'::'.g:fugitive_summary_format), '%#')
|
\ s:shellesc('--pretty=format:fugitive://'.b:git_dir.'//%H'.path.'::'.format), '%#')
|
||||||
let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f::%m,%-G%.%#'
|
let &grepformat = '%Cdiff %.%#,%C--- %.%#,%C+++ %.%#,%Z@@ -%\d%\+\,%\d%\+ +%l\,%\d%\+ @@,%-G-%.%#,%-G+%.%#,%-G %.%#,%A%f::%m,%-G%.%#'
|
||||||
exe a:cmd . (a:bang ? '! ' : ' ') . s:ShellExpand(before . after)
|
exe a:cmd . (a:bang ? '! ' : ' ') . s:ShellExpand(before . after)
|
||||||
if len(path) && a:line2 == -1
|
if len(path) && a:line2 == -1
|
||||||
|
|||||||
Reference in New Issue
Block a user