mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 12:03:47 -05:00
Let PathInfo decide how to fill the error entry
This commit is contained in:
@@ -2073,7 +2073,7 @@ function! s:IndexInfo(dir, commit_stage, path) abort
|
|||||||
let result = fugitive#Execute(['--literal-pathspecs', 'ls-files', '--stage', '--', a:path])
|
let result = fugitive#Execute(['--literal-pathspecs', 'ls-files', '--stage', '--', a:path])
|
||||||
let line = result.stdout[0]
|
let line = result.stdout[0]
|
||||||
if result.exit_status || empty(line)
|
if result.exit_status || empty(line)
|
||||||
return [-1, '000000', '', '', -1]
|
return []
|
||||||
endif
|
endif
|
||||||
let newftime = getftime(fugitive#Find('.git/index', a:dir))
|
let newftime = getftime(fugitive#Find('.git/index', a:dir))
|
||||||
let [info, filename] = split(line, "\t")
|
let [info, filename] = split(line, "\t")
|
||||||
|
|||||||
Reference in New Issue
Block a user