refactor(git/status): rework entries into typed variants on porcelain v2

This commit is contained in:
2026-05-09 22:59:07 +02:00
parent a7932bab5a
commit 067594ef9e
9 changed files with 793 additions and 292 deletions
+3 -3
View File
@@ -78,7 +78,7 @@ local function setup_sidebar_with_unstaged_file(
)
r:refresh()
t.wait_for(function()
return r.status and #r.status:by_kind("unstaged") > 0
return r.status and #r.status:rows("unstaged") > 0
end, "git status to report unstaged changes")
local entry_line = assert(
@@ -108,7 +108,7 @@ t.test("stage with diff open: sidebar cursor stays put", function()
vim.api.nvim_set_current_win(sidebar_win)
t.press("s")
t.wait_for(function()
return #r.status:by_kind("staged") > 0
return #r.status:rows("staged") > 0
end, "stage to propagate to repo state")
t.eq(
@@ -145,7 +145,7 @@ t.test(
vim.api.nvim_set_current_win(sidebar_win)
t.press("s")
t.wait_for(function()
return #r.status:by_kind("staged") > 0
return #r.status:rows("staged") > 0
end, "stage to propagate to repo state")
t.eq(