motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

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:
Mautoload/fugitive.vim | 2++
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'