From 410e17129d412c3a8510c2f314d8aa111ffc3774 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 22 Aug 2019 19:45:13 -0500 Subject: [PATCH] Use :Git not :G for visible maps Let's treat :Git as canonical and :G as the shorthand. --- autoload/fugitive.vim | 32 ++++++++++++++++---------------- doc/fugitive.txt | 14 +++++++------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index a90d88d..ec40417 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -5474,10 +5474,10 @@ function! fugitive#MapJumps(...) abort call s:Map('n', 'gi', ":exe 'Gsplit' (v:count ? '.gitignore' : '.git/info/exclude')", '') call s:Map('x', 'gi', ":exe 'Gsplit' (v:count ? '.gitignore' : '.git/info/exclude')", '') - nnoremap c :Gcommit - nnoremap c :Gcommit - nnoremap cv :Gcommit -v - nnoremap cv :Gcommit -v + nnoremap c :Git commit + nnoremap c :Git commit + nnoremap cv :Git commit -v + nnoremap cv :Git commit -v nnoremap ca :Gcommit --amend nnoremap cc :Gcommit nnoremap ce :Gcommit --amend --no-edit @@ -5494,18 +5494,18 @@ function! fugitive#MapJumps(...) abort nnoremap cA :Gcommit --edit --squash==SquashArgument() nnoremap c? :help fugitive_c - nnoremap cr :Grevert - nnoremap cr :Grevert + nnoremap cr :Git revert + nnoremap cr :Git revert nnoremap crc :Grevert =SquashArgument() nnoremap crn :Grevert --no-commit =SquashArgument() nnoremap cr? :help fugitive_cr - nnoremap cm :Gmerge - nnoremap cm :Gmerge + nnoremap cm :Git merge + nnoremap cm :Git merge nnoremap cm? :help fugitive_cm - nnoremap cz :G stash - nnoremap cz :G stash + nnoremap cz :Git stash + nnoremap cz :Git stash nnoremap cza :exe EchoExec(['stash', 'apply', '--quiet', '--index', 'stash@{' . v:count . '}']) nnoremap czA :exe EchoExec(['stash', 'apply', '--quiet', 'stash@{' . v:count . '}']) nnoremap czp :exe EchoExec(['stash', 'pop', '--quiet', '--index', 'stash@{' . v:count . '}']) @@ -5515,17 +5515,17 @@ function! fugitive#MapJumps(...) abort nnoremap czz :exe EchoExec(['stash'] + (v:count > 1 ? ['--all'] : v:count ? ['--include-untracked'] : [])) nnoremap cz? :help fugitive_cz - nnoremap co :G checkout - nnoremap co :G checkout + nnoremap co :Git checkout + nnoremap co :Git checkout nnoremap coo :exe EchoExec(['checkout'] + split(SquashArgument()) + ['--']) nnoremap co? :help fugitive_co - nnoremap cb :G branch - nnoremap cb :G branch + nnoremap cb :Git branch + nnoremap cb :Git branch nnoremap cb? :help fugitive_cb - nnoremap r :Grebase - nnoremap r :Grebase + nnoremap r :Git rebase + nnoremap r :Git rebase nnoremap ri :Grebase --interactive=RebaseArgument() nnoremap rf :Grebase --autosquash=RebaseArgument() nnoremap ru :Grebase --interactive @{upstream} diff --git a/doc/fugitive.txt b/doc/fugitive.txt index d4750dd..a5a6166 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -455,7 +455,7 @@ cS Create a `squash!` commit for the commit under the cA Create a `squash!` commit for the commit under the cursor and edit the message. -c Populate command line with ":Gcommit ". +c Populate command line with ":Git commit ". *fugitive_cr* crc Revert the commit under the cursor. @@ -463,10 +463,10 @@ crc Revert the commit under the cursor. crn Revert the commit under the cursor in the index and work tree, but do not actually commit the changes. -cr Populate command line with ":Grevert ". +cr Populate command line with ":Git revert ". *fugitive_cm* -cm Populate command line with ":Gmerge ". +cm Populate command line with ":Git merge ". c? Show this help. @@ -476,9 +476,9 @@ Checkout/branch mappings ~ coo Check out the commit under the cursor. -cb Populate command line with ":G branch ". +cb Populate command line with ":Git branch ". -co Populate command line with ":G checkout ". +co Populate command line with ":Git checkout ". cb? Show this help. co? @@ -502,7 +502,7 @@ czP Pop topmost stash, or stash@{count}. czp Pop topmost stash, or stash@{count}, preserving the index. -cz Populate command line with ":G stash ". +cz Populate command line with ":Git stash ". cz? Show this help. @@ -538,7 +538,7 @@ rm Perform an interactive rebase with the commit under rd Perform an interactive rebase with the commit under the cursor set to `drop`. -r Populate command line with ":Grebase ". +r Populate command line with ":Git rebase ". r? Show this help.