mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Fix U does not delete Untracked files (#823)
This commit is contained in:
@@ -859,7 +859,7 @@ function! s:StageUndo() abort
|
|||||||
let hash = repo.git_chomp('hash-object', '-w', filename)
|
let hash = repo.git_chomp('hash-object', '-w', filename)
|
||||||
if !empty(hash)
|
if !empty(hash)
|
||||||
if section ==# 'untracked'
|
if section ==# 'untracked'
|
||||||
call repo.git_chomp_in_tree('clean', '--', filename)
|
call repo.git_chomp_in_tree('clean', '-f', '--', filename)
|
||||||
elseif section ==# 'unmerged'
|
elseif section ==# 'unmerged'
|
||||||
call repo.git_chomp_in_tree('rm', '--', filename)
|
call repo.git_chomp_in_tree('rm', '--', filename)
|
||||||
elseif section ==# 'unstaged'
|
elseif section ==# 'unstaged'
|
||||||
|
|||||||
Reference in New Issue
Block a user