mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(git): use nul char as separator for git status
This commit is contained in:
parent
e3c5944421
commit
8e0dfd2856
3 changed files with 7 additions and 2 deletions
|
@ -106,6 +106,7 @@ function M.status(opts, ctx)
|
|||
"status",
|
||||
"-uall",
|
||||
"--porcelain=v1",
|
||||
"-z",
|
||||
}
|
||||
if opts.ignored then
|
||||
table.insert(args, "--ignored=matching")
|
||||
|
@ -116,6 +117,7 @@ function M.status(opts, ctx)
|
|||
return require("snacks.picker.source.proc").proc({
|
||||
opts,
|
||||
{
|
||||
sep = "\0",
|
||||
cwd = cwd,
|
||||
cmd = "git",
|
||||
args = args,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue