Skip to content
Snippets Groups Projects
Commit 23faeadc authored by Tim Pope's avatar Tim Pope
Browse files

Revert "Show all untracked files in :Gstatus window"

parent 1ecd12d5
Branches
Tags
No related merge requests found
...@@ -2470,16 +2470,13 @@ function! s:BufReadIndex() abort ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment