diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 4969cc9..bae8898 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1442,7 +1442,8 @@ function! fugitive#BufReadStatus() abort nnoremap q :if bufnr('$') == 1quitelsebdeleteendif nnoremap r :edit nnoremap R :edit - nnoremap U :execute StageUndo() + nnoremap U :echoerr 'Changed to g' + nnoremap g :execute StageUndo() nnoremap . : =fnameescape(StatusCfile()) nnoremap g? :help fugitive-:Gstatus nnoremap :help fugitive-:Gstatus diff --git a/doc/fugitive.txt b/doc/fugitive.txt index d3d9908..625694e 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -59,10 +59,10 @@ that are part of Git repositories). q close status r reload status S |:Gvsplit| - U |:Git| checkout - U |:Git| checkout HEAD (staged files) - U |:Git| clean (untracked files) - U |:Git| rm (unmerged files) + g| |:Git| checkout + g| |:Git| checkout HEAD (staged files) + g| |:Git| clean (untracked files) + g| |:Git| rm (unmerged files) . enter |:| command line with file prepopulated *fugitive-:Gcommit*