Force :Gstatus U to root of tree

References #97.
This commit is contained in:
Tim Pope
2014-06-25 10:29:17 -04:00
parent 91900baad1
commit 41cdbdcd62

View File

@@ -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.git_chomp('checkout', '--', filename) call repo.git_chomp_in_tree('checkout', '--', filename)
else else
call repo.git_chomp('checkout', 'HEAD', '--', filename) call repo.git_chomp_in_tree('checkout', 'HEAD', '--', filename)
endif endif
call s:StageReloadSeek(filename, line('.'), line('.')) call s:StageReloadSeek(filename, line('.'), line('.'))
let @" = hash let @" = hash