commit 41cdbdcd6205d54544682223e362fe2b24a83e0d (tree)
parent 91900baad1569b5a1e60fad0f1a198d5a5aaea6c
Author: Tim Pope <code@tpope.net>
Date: Wed, 25 Jun 2014 10:29:17 -0400
Force :Gstatus U to root of tree
References #97.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -792,9 +792,9 @@ function! s:StageUndo() abort
if section ==# 'untracked'
call delete(s:repo().tree(filename))
elseif section ==# 'unstaged'
- call repo.git_chomp('checkout', '--', filename)
+ call repo.git_chomp_in_tree('checkout', '--', filename)
else
- call repo.git_chomp('checkout', 'HEAD', '--', filename)
+ call repo.git_chomp_in_tree('checkout', 'HEAD', '--', filename)
endif
call s:StageReloadSeek(filename, line('.'), line('.'))
let @" = hash