mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
Support X on newly added file
Closes https://github.com/tpope/vim-fugitive/issues/1212
This commit is contained in:
@@ -2436,6 +2436,8 @@ function! s:StageDelete(lnum, count) abort
|
||||
endtry
|
||||
elseif info.status ==# 'U'
|
||||
call s:TreeChomp('rm', '--', info.paths[0])
|
||||
elseif info.status ==# 'A'
|
||||
call s:TreeChomp('rm', '-f', '--', info.paths[0])
|
||||
elseif info.status ==# '?'
|
||||
call s:TreeChomp('clean', '-f', '--', info.paths[0])
|
||||
elseif info.section ==# 'Unstaged'
|
||||
|
||||
Reference in New Issue
Block a user