mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-09 05:24:58 +08:00
@@ -1006,7 +1006,7 @@ function! s:Log(cmd,...)
|
|||||||
let path = ''
|
let path = ''
|
||||||
endif
|
endif
|
||||||
let cmd = ['--no-pager', 'log', '--no-color']
|
let cmd = ['--no-pager', 'log', '--no-color']
|
||||||
let cmd += [escape('--pretty=format:fugitive://'.s:repo().dir().'//%H'.path.'::'.g:fugitive_summary_format,'%')]
|
let cmd += ['--pretty=format:fugitive://'.s:repo().dir().'//%H'.path.'::'.g:fugitive_summary_format]
|
||||||
if empty(filter(a:000[0 : index(a:000,'--')],'v:val !~# "^-"'))
|
if empty(filter(a:000[0 : index(a:000,'--')],'v:val !~# "^-"'))
|
||||||
if s:buffer().commit() =~# '\x\{40\}'
|
if s:buffer().commit() =~# '\x\{40\}'
|
||||||
let cmd += [s:buffer().commit()]
|
let cmd += [s:buffer().commit()]
|
||||||
@@ -1024,7 +1024,7 @@ function! s:Log(cmd,...)
|
|||||||
let dir = getcwd()
|
let dir = getcwd()
|
||||||
try
|
try
|
||||||
execute cd.'`=s:repo().tree()`'
|
execute cd.'`=s:repo().tree()`'
|
||||||
let &grepprg = call(s:repo().git_command,cmd,s:repo())
|
let &grepprg = escape(call(s:repo().git_command,cmd,s:repo()),'%')
|
||||||
let &grepformat = '%f::%m'
|
let &grepformat = '%f::%m'
|
||||||
exe a:cmd
|
exe a:cmd
|
||||||
finally
|
finally
|
||||||
|
|||||||
Reference in New Issue
Block a user