Skip to content

Commit 2237204

Browse files
committed
chore: small rename
1 parent a054db4 commit 2237204

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/nvim-tree/git/db.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function Db:insert(path, status)
7373
end
7474
end
7575

76-
function Db:get_from_path(cwd)
76+
function Db:list_statuses_under_uri(cwd)
7777
local query = "select * from statuses where path LIKE ?"
7878
local statuses = self.db:eval(query, cwd..'%')
7979
if type(statuses) == "table" then

lua/nvim-tree/git/tree-update.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ local function ignore_nodes(parent, statuses)
5151
end
5252

5353
function M.update(db, parent, ignore)
54-
local data = db:get_from_path(parent.absolute_path)
54+
local data = db:list_statuses_under_uri(parent.absolute_path)
5555

5656
local uri_to_status = data_to_record(data)
5757
if ignore then

0 commit comments

Comments
 (0)