refactor(git): split engine into core subpackage
This commit is contained in:
@@ -71,7 +71,7 @@ local function setup_sidebar_with_unstaged_file(
|
||||
assert(sidebar_win, "sidebar window should exist")
|
||||
|
||||
local r = assert(
|
||||
require("git.repo").find(vim.fn.getcwd()),
|
||||
require("git.core.repo").find(vim.fn.getcwd()),
|
||||
"repo should resolve for the test worktree"
|
||||
)
|
||||
r:refresh()
|
||||
@@ -102,7 +102,7 @@ t.test("stage with diff open: sidebar cursor stays put", function()
|
||||
return find_diff_win("left") ~= nil
|
||||
end, "diff windows to appear")
|
||||
|
||||
local r = assert(require("git.repo").find(vim.fn.getcwd()))
|
||||
local r = assert(require("git.core.repo").find(vim.fn.getcwd()))
|
||||
vim.api.nvim_set_current_win(sidebar_win)
|
||||
t.press("s")
|
||||
t.wait_for(function()
|
||||
@@ -139,7 +139,7 @@ t.test(
|
||||
"left diff foldmethod should be 'diff' after Tab"
|
||||
)
|
||||
|
||||
local r = assert(require("git.repo").find(vim.fn.getcwd()))
|
||||
local r = assert(require("git.core.repo").find(vim.fn.getcwd()))
|
||||
vim.api.nvim_set_current_win(sidebar_win)
|
||||
t.press("s")
|
||||
t.wait_for(function()
|
||||
|
||||
Reference in New Issue
Block a user