mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker.git): allow passing extra args to git log command for file renames
This commit is contained in:
parent
bc0630e43b
commit
a2fa5954f2
1 changed files with 11 additions and 1 deletions
|
@ -134,7 +134,17 @@ function M.log(opts, ctx)
|
|||
Proc.proc({
|
||||
cmd = "git",
|
||||
cwd = cwd,
|
||||
args = { "log", "-z", "--follow", "--name-status", "--pretty=format:''", "--diff-filter=R", "--", file },
|
||||
args = git_args(
|
||||
opts.args,
|
||||
"log",
|
||||
"-z",
|
||||
"--follow",
|
||||
"--name-status",
|
||||
"--pretty=format:''",
|
||||
"--diff-filter=R",
|
||||
"--",
|
||||
file
|
||||
),
|
||||
}, ctx)(function(item)
|
||||
for _, text in ipairs(vim.split(item.text, "\0")) do
|
||||
if text:find("^R%d%d%d$") then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue