From 90250785d1194c2dcc8989f530580f2ce7ad8728 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 9 Mar 2016 21:26:09 -0500 Subject: [PATCH] Call git clean for U on untracked file --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index d53530c..814e3b3 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -863,7 +863,7 @@ function! s:StageUndo() abort let hash = repo.git_chomp('hash-object', '-w', filename) if !empty(hash) if section ==# 'untracked' - call delete(s:repo().tree(filename)) + call repo.git_chomp_in_tree('clean', '--', filename) elseif section ==# 'unstaged' call repo.git_chomp_in_tree('checkout', '--', filename) else -- 2.11.4.GIT