fix(#2327): set parent folder git ignore status following file update (#2328)

* fix(#1931): do not execute git status in git ignored directories

* fix(#1931): reload.refresh_node is always asynchronous

* fix(#2327): set parent folder ignore status following file update
This commit is contained in:
Alexander Courtis 2023-07-29 16:28:19 +10:00 committed by GitHub
parent 273c1700eb
commit c1466f991a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ function M.get_git_status(node)
end
function M.is_git_ignored(node)
return node.git_status and node.git_status.file == "!!"
return node and node.git_status and node.git_status.file == "!!"
end
function M.node_destroy(node)

View File

@ -30,7 +30,7 @@ end
local function update_parent_statuses(node, project, root)
while project and node and node.absolute_path ~= root do
explorer_node.update_git_status(node, false, project)
explorer_node.update_git_status(node, explorer_node.is_git_ignored(node.parent), project)
node = node.parent
end
end