mirror of https://github.com/folke/lazy.nvim.git
fix(git): add --no-show-signature. Fixes #218
This commit is contained in:
parent
c8553ca44f
commit
6c0b803999
|
@ -11,6 +11,7 @@ local uv = vim.loop
|
||||||
---@field on_line? fun(string)
|
---@field on_line? fun(string)
|
||||||
---@field on_exit? fun(ok:boolean, output:string)
|
---@field on_exit? fun(ok:boolean, output:string)
|
||||||
---@field timeout? number
|
---@field timeout? number
|
||||||
|
---@field env? string[]
|
||||||
|
|
||||||
---@param opts? ProcessOpts
|
---@param opts? ProcessOpts
|
||||||
function M.spawn(cmd, opts)
|
function M.spawn(cmd, opts)
|
||||||
|
@ -21,6 +22,9 @@ function M.spawn(cmd, opts)
|
||||||
"GIT_TERMINAL_PROMPT=0",
|
"GIT_TERMINAL_PROMPT=0",
|
||||||
"GIT_SSH_COMMAND=ssh -oBatchMode=yes",
|
"GIT_SSH_COMMAND=ssh -oBatchMode=yes",
|
||||||
}
|
}
|
||||||
|
if opts.env then
|
||||||
|
vim.list_extend(env, opts.env)
|
||||||
|
end
|
||||||
|
|
||||||
for key, value in
|
for key, value in
|
||||||
pairs(uv.os_environ() --[[@as string[] ]])
|
pairs(uv.os_environ() --[[@as string[] ]])
|
||||||
|
|
|
@ -26,6 +26,7 @@ M.log = {
|
||||||
"--decorate",
|
"--decorate",
|
||||||
"--date=short",
|
"--date=short",
|
||||||
"--color=never",
|
"--color=never",
|
||||||
|
"--no-show-signature",
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.updated then
|
if opts.updated then
|
||||||
|
|
Loading…
Reference in New Issue