File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -183,16 +183,6 @@ function BaseNode:last_group_node()
183
183
return node
184
184
end
185
185
186
- --- @param path string
187
- --- @param callback fun ( toplevel : string | nil , project : table | nil )
188
- function BaseNode :reload_and_get_git_project (path , callback )
189
- local toplevel = git .get_toplevel (path )
190
-
191
- git .reload_project (toplevel , path , function ()
192
- callback (toplevel , git .get_project (toplevel ) or {})
193
- end )
194
- end
195
-
196
186
--- @param project table | nil
197
187
--- @param root string | nil
198
188
function BaseNode :update_parent_statuses (project , root )
228
218
--- Refresh contents and git status for a single node
229
219
function BaseNode :refresh ()
230
220
local parent_node = utils .get_parent_of_group (self )
221
+ local toplevel = git .get_toplevel (self .absolute_path )
222
+
223
+ git .reload_project (toplevel , self .absolute_path , function ()
224
+ local project = git .get_project (toplevel ) or {}
231
225
232
- self :reload_and_get_git_project (self .absolute_path , function (toplevel , project )
233
226
self .explorer :reload (parent_node , project )
234
227
235
228
parent_node :update_parent_statuses (project , toplevel )
You can’t perform that action at this time.
0 commit comments