Revert "Show all untracked files in :Gstatus window"

This reverts commit 21b6dd7aee.

Closes https://github.com/tpope/vim-fugitive/issues/726
This commit is contained in:
Tim Pope
2015-11-30 19:38:48 -05:00
parent 1ecd12d523
commit 23faeadc7c

View File

@@ -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