commit 23faeadc7c27cb32fa259af9b1f5ca459a1d6e2d (tree)
parent 1ecd12d523ffe031b5840316eeae1f24dd8920e4
Author: Tim Pope <code@tpope.net>
Date: Mon, 30 Nov 2015 19:38:48 -0500
Revert "Show all untracked files in :Gstatus window"
This reverts commit 21b6dd7aeec3e4bc96d7b32cd594b7818c0c4082.
Closes https://github.com/tpope/vim-fugitive/issues/726
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -2470,16 +2470,13 @@ function! s:BufReadIndex() abort
else
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
let dir = getcwd()
- if fugitive#git_version() =~# '^0\|^1\.[1-3]\.'
+ if fugitive#git_version() =~# '^0\|^1\.[1-7]\.'
let cmd = s:repo().git_command('status')
- elseif fugitive#git_version() =~# '^1\.[4-7]\.'
- let cmd = s:repo().git_command('status', '-u')
else
let cmd = s:repo().git_command(
\ '-c', 'status.displayCommentPrefix=true',
\ '-c', 'color.status=false',
\ '-c', 'status.short=false',
- \ '-c', 'status.showUntrackedFiles=all',
\ 'status')
endif
try