mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 20:13:46 -05:00
@@ -792,9 +792,9 @@ function! s:StageUndo() abort
|
|||||||
if section ==# 'untracked'
|
if section ==# 'untracked'
|
||||||
call delete(s:repo().tree(filename))
|
call delete(s:repo().tree(filename))
|
||||||
elseif section ==# 'unstaged'
|
elseif section ==# 'unstaged'
|
||||||
call repo.get_chomp('checkout', '--', filename)
|
call repo.git_chomp('checkout', '--', filename)
|
||||||
else
|
else
|
||||||
call repo.get_chomp('checkout', 'HEAD', '--', filename)
|
call repo.git_chomp('checkout', 'HEAD', '--', filename)
|
||||||
endif
|
endif
|
||||||
call s:StageReloadSeek(filename, line('.'), line('.'))
|
call s:StageReloadSeek(filename, line('.'), line('.'))
|
||||||
let @" = hash
|
let @" = hash
|
||||||
|
|||||||
Reference in New Issue
Block a user