Skip to content
Snippets Groups Projects
Commit e892fb65 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

perf: get git status only once per refresh

parent 973d5382
Branches
Tags Chart-3.2.1
No related merge requests found
......@@ -277,8 +277,8 @@ function! magit#state#update() dict
try
call magit#utils#chdir(magit#git#top_dir())
call magit#utils#refresh_submodule_list()
for [mode, diff_dict_mode] in items(self.dict)
let status_list = magit#git#get_status()
for [mode, diff_dict_mode] in items(self.dict)
for file_status in status_list
let status=file_status[mode]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment