Extract :Ggrep/:Glgrep wrapper function

This commit is contained in:
Tim Pope
2020-04-24 22:58:59 -04:00
parent 92ad06f70d
commit 5dfe8581ca
2 changed files with 8 additions and 3 deletions

View File

@@ -4172,6 +4172,11 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort
endif
endfunction
function! fugitive#GrepCommand(line1, line2, range, bang, mods, arg) abort
return fugitive#Command(a:line1, a:line2, a:range, a:bang, a:mods,
\ "grep -O " . a:arg)
endfunction
let s:log_diff_context = '{"filename": fugitive#Find(v:val . from, a:dir), "lnum": get(offsets, v:key), "module": strpart(v:val, 0, len(a:state.base_module)) . from}'
function! s:LogFlushQueue(state, dir) abort