Change :Gstatus U to g|

I want U for a full `git reset`.  This will probably end up on X, but I
don't want to do a second abrupt transition, so for now, the official
map is the ungainly g|.
This commit is contained in:
Tim Pope 2018-12-20 13:12:23 -05:00
parent d625c55689
commit b295f49e93
2 changed files with 6 additions and 5 deletions

View File

@ -1442,7 +1442,8 @@ function! fugitive#BufReadStatus() abort
nnoremap <buffer> <silent> q :<C-U>if bufnr('$') == 1<Bar>quit<Bar>else<Bar>bdelete<Bar>endif<CR> nnoremap <buffer> <silent> q :<C-U>if bufnr('$') == 1<Bar>quit<Bar>else<Bar>bdelete<Bar>endif<CR>
nnoremap <buffer> <silent> r :<C-U>edit<CR> nnoremap <buffer> <silent> r :<C-U>edit<CR>
nnoremap <buffer> <silent> R :<C-U>edit<CR> nnoremap <buffer> <silent> R :<C-U>edit<CR>
nnoremap <buffer> <silent> U :<C-U>execute <SID>StageUndo()<CR> nnoremap <buffer> <silent> U :<C-U>echoerr 'Changed to g<Bar>'<CR>
nnoremap <buffer> <silent> g<Bar> :<C-U>execute <SID>StageUndo()<CR>
nnoremap <buffer> . : <C-R>=<SID>fnameescape(<SID>StatusCfile())<CR><Home> nnoremap <buffer> . : <C-R>=<SID>fnameescape(<SID>StatusCfile())<CR><Home>
nnoremap <buffer> <silent> g? :help fugitive-:Gstatus<CR> nnoremap <buffer> <silent> g? :help fugitive-:Gstatus<CR>
nnoremap <buffer> <silent> <F1> :help fugitive-:Gstatus<CR> nnoremap <buffer> <silent> <F1> :help fugitive-:Gstatus<CR>

View File

@ -59,10 +59,10 @@ that are part of Git repositories).
q close status q close status
r reload status r reload status
S |:Gvsplit| S |:Gvsplit|
U |:Git| checkout g| |:Git| checkout
U |:Git| checkout HEAD (staged files) g| |:Git| checkout HEAD (staged files)
U |:Git| clean (untracked files) g| |:Git| clean (untracked files)
U |:Git| rm (unmerged files) g| |:Git| rm (unmerged files)
. enter |:| command line with file prepopulated . enter |:| command line with file prepopulated
*fugitive-:Gcommit* *fugitive-:Gcommit*