mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 20:43:46 -05:00
Only diff known changed files for status
This should improve performance on large repositories. References: https://github.com/tpope/vim-fugitive/issues/2207
This commit is contained in:
@@ -2793,7 +2793,7 @@ function! fugitive#BufReadStatus(cmdbang) abort
|
|||||||
let diff['Staged'] = fugitive#Execute(diff_cmd + ['--cached'], function('len'))
|
let diff['Staged'] = fugitive#Execute(diff_cmd + ['--cached'], function('len'))
|
||||||
endif
|
endif
|
||||||
if len(unstaged)
|
if len(unstaged)
|
||||||
let diff['Unstaged'] = fugitive#Execute(diff_cmd, function('len'))
|
let diff['Unstaged'] = fugitive#Execute(diff_cmd + map(copy(unstaged), 'v:val.relative[0]'), function('len'))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
for dict in staged
|
for dict in staged
|
||||||
|
|||||||
Reference in New Issue
Block a user