mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Handle status diff file arguments more rigorously
This commit is contained in:
@@ -2795,7 +2795,7 @@ function! fugitive#BufReadStatus(cmdbang) abort
|
||||
let diff['Staged'] = fugitive#Execute(diff_cmd + ['--cached'], function('len'))
|
||||
endif
|
||||
if len(unstaged)
|
||||
let diff['Unstaged'] = fugitive#Execute(diff_cmd + map(copy(unstaged), 'v:val.relative[0]'), function('len'))
|
||||
let diff['Unstaged'] = fugitive#Execute(diff_cmd + ['--'] + map(copy(unstaged), 'tree . "/" . v:val.relative[0]'), function('len'))
|
||||
endif
|
||||
|
||||
for dict in staged
|
||||
|
||||
Reference in New Issue
Block a user