mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
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:
@@ -2470,16 +2470,13 @@ function! s:BufReadIndex() abort
|
|||||||
else
|
else
|
||||||
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
|
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
|
||||||
let dir = getcwd()
|
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')
|
let cmd = s:repo().git_command('status')
|
||||||
elseif fugitive#git_version() =~# '^1\.[4-7]\.'
|
|
||||||
let cmd = s:repo().git_command('status', '-u')
|
|
||||||
else
|
else
|
||||||
let cmd = s:repo().git_command(
|
let cmd = s:repo().git_command(
|
||||||
\ '-c', 'status.displayCommentPrefix=true',
|
\ '-c', 'status.displayCommentPrefix=true',
|
||||||
\ '-c', 'color.status=false',
|
\ '-c', 'color.status=false',
|
||||||
\ '-c', 'status.short=false',
|
\ '-c', 'status.short=false',
|
||||||
\ '-c', 'status.showUntrackedFiles=all',
|
|
||||||
\ 'status')
|
\ 'status')
|
||||||
endif
|
endif
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user