mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-08 21:15:23 +08:00
Remove unmerged files on :Gstatus U
This commit is contained in:
1 parent
9315ec694d
commit
19d1c944db
2 files changed
+3
No files matched your search
@@ -864,6 +864,8 @@ function! s:StageUndo() abort
|
||||
if !empty(hash)
|
||||
if section ==# 'untracked'
|
||||
call repo.git_chomp_in_tree('clean', '--', filename)
|
||||
elseif section ==# 'unmerged'
|
||||
call repo.git_chomp_in_tree('rm', '--', filename)
|
||||
elseif section ==# 'unstaged'
|
||||
call repo.git_chomp_in_tree('checkout', '--', filename)
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user