From 2f3cd4715d92693f1cb2226a36cf8284076de98b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 1 Sep 2021 18:54:18 -0400 Subject: [PATCH] Remove :Gcgrep This was a hedge in case I decided to go all in with symmetry with :Gclog. I have decided to to. --- doc/fugitive.txt | 2 +- plugin/fugitive.vim | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 20ad78f..0952d0f 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -98,7 +98,7 @@ that are part of Git repositories). *:Git_mergetool* :Git mergetool [args] Like |:Git_difftool|, but target merge conflicts. - *:Ggrep* *:Gcgrep* *:Git_grep* + *:Ggrep* *:Git_grep* :Ggrep[!] [args] An approximation of |:grep|[!] with git-grep as :Git[!] grep -O [args] 'grepprg'. diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8dc61ff..e444560 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -503,7 +503,6 @@ exe "command! -bar -bang -nargs=? -complete=customlist,fugitive#CdComplete Gcd exe "command! -bar -bang -nargs=? -complete=customlist,fugitive#CdComplete Glcd exe fugitive#Cd(, 1)" exe 'command! -bang -nargs=? -range=-1' s:addr_wins '-complete=customlist,fugitive#GrepComplete Ggrep exe fugitive#GrepCommand(, , +"", 0, "", )' -exe 'command! -bang -nargs=? -range=-1' s:addr_wins '-complete=customlist,fugitive#GrepComplete Gcgrep exe fugitive#GrepCommand(, , +"", 0, "", )' exe 'command! -bang -nargs=? -range=-1' s:addr_wins '-complete=customlist,fugitive#GrepComplete Glgrep exe fugitive#GrepCommand(0, > 0 ? : 0, +"", 0, "", )' if exists(':Glog') != 2 && get(g:, 'fugitive_legacy_commands', 0)