docs(git_status): add missing opt expand_dir (#2824)
* docs(git_status): add missing opt `expand_dir` * [docgen] Update doc/telescope.txt skip-checks: true --------- Co-authored-by: Github Actions <actions@github>
This commit is contained in:
@@ -365,12 +365,13 @@ git.status = function(opts)
|
||||
return
|
||||
end
|
||||
|
||||
local args = { "status", "--porcelain=v1", "--", "." }
|
||||
|
||||
local gen_new_finder = function()
|
||||
local expand_dir = vim.F.if_nil(opts.expand_dir, true)
|
||||
local git_cmd = git_command({ "status", "--porcelain=v1", "--", "." }, opts)
|
||||
if expand_dir then
|
||||
table.insert(git_cmd, #git_cmd - 1, "-u")
|
||||
if vim.F.if_nil(opts.expand_dir, true) then
|
||||
table.insert(args, #args - 1, "-uall")
|
||||
end
|
||||
local git_cmd = git_command(args, opts)
|
||||
opts.entry_maker = vim.F.if_nil(opts.entry_maker, make_entry.gen_from_git_status(opts))
|
||||
return finders.new_oneshot_job(git_cmd, opts)
|
||||
end
|
||||
|
||||
@@ -216,6 +216,7 @@ builtin.git_branches = require_on_exported_call("telescope.builtin.__git").branc
|
||||
---@field use_file_path boolean: if we should use the current buffer git root (default: false)
|
||||
---@field use_git_root boolean: if we should use git root as cwd or the cwd (important for submodule) (default: true)
|
||||
---@field git_icons table: string -> string. Matches name with icon (see source code, make_entry.lua git_icon_defaults)
|
||||
---@field expand_dir boolean: pass flag `-uall` to show files in untracked directories (default: true)
|
||||
builtin.git_status = require_on_exported_call("telescope.builtin.__git").status
|
||||
|
||||
--- Lists stash items in current repository
|
||||
|
||||
Reference in New Issue
Block a user