commit 74aefa53acbc0653a97a6cd640b5dd57d591a7c3 (tree)
parent 654f7f54328a03ce8039959fe5748192ae1c050c
Author: Tim Pope <code@tpope.net>
Date: Wed, 20 Feb 2019 23:47:46 -0500
Support X on newly added file
Closes https://github.com/tpope/vim-fugitive/issues/1212
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -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'