chore: apply formatting
This commit is contained in:
+1
-4
@@ -170,10 +170,7 @@ end
|
|||||||
---@return boolean ok
|
---@return boolean ok
|
||||||
local function populate(buf, r, rev, state, rev_sha)
|
local function populate(buf, r, rev, state, rev_sha)
|
||||||
local rev_str = rev:format()
|
local rev_str = rev:format()
|
||||||
local stdout = util.git(
|
local stdout = util.git({ "cat-file", "-p", rev_str }, { cwd = r.worktree })
|
||||||
{ "cat-file", "-p", rev_str },
|
|
||||||
{ cwd = r.worktree }
|
|
||||||
)
|
|
||||||
if not stdout then
|
if not stdout then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
+6
-1
@@ -199,7 +199,12 @@ end
|
|||||||
---@return string?
|
---@return string?
|
||||||
function M.exec(cmd, opts)
|
function M.exec(cmd, opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
local sys_opts = { cwd = opts.cwd, stdin = opts.stdin, text = true }
|
local sys_opts = {
|
||||||
|
cwd = opts.cwd,
|
||||||
|
stdin = opts.stdin,
|
||||||
|
env = opts.env,
|
||||||
|
text = true,
|
||||||
|
}
|
||||||
|
|
||||||
if opts.on_exit then
|
if opts.on_exit then
|
||||||
vim.system(cmd, sys_opts, vim.schedule_wrap(opts.on_exit))
|
vim.system(cmd, sys_opts, vim.schedule_wrap(opts.on_exit))
|
||||||
|
|||||||
Reference in New Issue
Block a user