From 23faeadc7c27cb32fa259af9b1f5ca459a1d6e2d Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 30 Nov 2015 19:38:48 -0500 Subject: [PATCH] Revert "Show all untracked files in :Gstatus window" This reverts commit 21b6dd7aeec3e4bc96d7b32cd594b7818c0c4082. Closes https://github.com/tpope/vim-fugitive/issues/726 --- plugin/fugitive.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index af74cbe..bcbf7f7 100644 --- 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