Map I to :Git add --intent-to-add
This commit is contained in:
parent
a3ab24f681
commit
f3dde245b3
@ -1826,6 +1826,8 @@ function! fugitive#BufReadStatus() abort
|
|||||||
nnoremap <buffer> <silent> d? :<C-U>help fugitive_d<CR>
|
nnoremap <buffer> <silent> d? :<C-U>help fugitive_d<CR>
|
||||||
nnoremap <buffer> <silent> P :<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR>
|
nnoremap <buffer> <silent> P :<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR>
|
||||||
xnoremap <buffer> <silent> P :<C-U>execute <SID>StagePatch(line("'<"),line("'>"))<CR>
|
xnoremap <buffer> <silent> P :<C-U>execute <SID>StagePatch(line("'<"),line("'>"))<CR>
|
||||||
|
nnoremap <buffer> <silent> I :<C-U>execute <SID>StagePatch(line('.'),line('.'))<CR>
|
||||||
|
xnoremap <buffer> <silent> I :<C-U>execute <SID>StagePatch(line("'<"),line("'>"))<CR>
|
||||||
if empty(mapcheck('q', 'n'))
|
if empty(mapcheck('q', 'n'))
|
||||||
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>
|
||||||
endif
|
endif
|
||||||
@ -2958,7 +2960,7 @@ function! s:DoUnstageStaged(record) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DoToggleUnstaged(record) abort
|
function! s:DoToggleUnstaged(record) abort
|
||||||
if a:record.patch
|
if a:record.patch && a:record.status !=# 'A'
|
||||||
return s:StageApply(a:record, 0, ['--cached'])
|
return s:StageApply(a:record, 0, ['--cached'])
|
||||||
else
|
else
|
||||||
call s:TreeChomp(['add', '-A', '--'] + a:record.paths)
|
call s:TreeChomp(['add', '-A', '--'] + a:record.paths)
|
||||||
|
@ -274,8 +274,9 @@ X Discard the change under the cursor. This uses
|
|||||||
gI Open .git/info/exclude in a split and add the file
|
gI Open .git/info/exclude in a split and add the file
|
||||||
under the cursor. Use a count to open .gitignore.
|
under the cursor. Use a count to open .gitignore.
|
||||||
|
|
||||||
P Invoke |:Git| add --patch or reset --patch on the file
|
*fugitive_I*
|
||||||
under the cursor. On untracked files, this instead
|
I Invoke |:Git| add --patch or reset --patch on the file
|
||||||
|
P under the cursor. On untracked files, this instead
|
||||||
calls |:Git| add --intent-to-add.
|
calls |:Git| add --intent-to-add.
|
||||||
|
|
||||||
*fugitive_d*
|
*fugitive_d*
|
||||||
|
Loading…
Reference in New Issue
Block a user