Skip to content

Commit 8c0b547

Browse files
committed
fix gitignore
1 parent 74a949c commit 8c0b547

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/neo-tree/git/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ local parse_porcelain_output = function(git_root, status_iter, batch_size, skip_
156156
local s = status:sub(1, 1)
157157
for parent in utils.path_parents(dir, true) do
158158
if parent == git_root then
159+
-- bubble only up to the children of the git root
159160
break
160161
end
161162

@@ -354,6 +355,9 @@ M.is_ignored = function(path)
354355
if not git_root then
355356
return false
356357
end
358+
if not M.cache[git_root] then
359+
M.status("HEAD", false, path)
360+
end
357361
local direct_lookup = M.cache[git_root][path] or M.cache[git_root][path .. utils.path_separator]
358362
if direct_lookup then
359363
vim.print(direct_lookup, path)

0 commit comments

Comments
 (0)