From 74aefa53acbc0653a97a6cd640b5dd57d591a7c3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 20 Feb 2019 23:47:46 -0500 Subject: [PATCH] Support X on newly added file Closes https://github.com/tpope/vim-fugitive/issues/1212 --- autoload/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 3e2a257..53761dd 100644 --- 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'