break(git_files): change show_untracked default to false (#842)
This commit is contained in:
@@ -977,7 +977,7 @@ builtin.git_files({opts}) *telescope.builtin.git_files()*
|
|||||||
(default: true)
|
(default: true)
|
||||||
{show_untracked} (boolean) if true, adds `--others` flag to
|
{show_untracked} (boolean) if true, adds `--others` flag to
|
||||||
command and shows untracked files
|
command and shows untracked files
|
||||||
(default: true)
|
(default: false)
|
||||||
{recurse_submodules} (boolean) if true, adds the
|
{recurse_submodules} (boolean) if true, adds the
|
||||||
`--recurse-submodules` flag to command
|
`--recurse-submodules` flag to command
|
||||||
(default: false)
|
(default: false)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ git.files = function(opts)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local show_untracked = utils.get_default(opts.show_untracked, true)
|
local show_untracked = utils.get_default(opts.show_untracked, false)
|
||||||
local recurse_submodules = utils.get_default(opts.recurse_submodules, false)
|
local recurse_submodules = utils.get_default(opts.recurse_submodules, false)
|
||||||
if show_untracked and recurse_submodules then
|
if show_untracked and recurse_submodules then
|
||||||
utils.notify("builtin.git_files", {
|
utils.notify("builtin.git_files", {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ builtin.current_buffer_tags = require_on_exported_call("telescope.builtin.files"
|
|||||||
---@param opts table: options to pass to the picker
|
---@param opts table: options to pass to the picker
|
||||||
---@field cwd string: specify the path of the repo
|
---@field cwd string: specify the path of the repo
|
||||||
---@field use_git_root boolean: if we should use git root as cwd or the cwd (important for submodule) (default: true)
|
---@field use_git_root boolean: if we should use git root as cwd or the cwd (important for submodule) (default: true)
|
||||||
---@field show_untracked boolean: if true, adds `--others` flag to command and shows untracked files (default: true)
|
---@field show_untracked boolean: if true, adds `--others` flag to command and shows untracked files (default: false)
|
||||||
---@field recurse_submodules boolean: if true, adds the `--recurse-submodules` flag to command (default: false)
|
---@field recurse_submodules boolean: if true, adds the `--recurse-submodules` flag to command (default: false)
|
||||||
---@field git_command table: command that will be exectued. {"git","ls-files","--exclude-standard","--cached"}
|
---@field git_command table: command that will be exectued. {"git","ls-files","--exclude-standard","--cached"}
|
||||||
builtin.git_files = require_on_exported_call("telescope.builtin.git").files
|
builtin.git_files = require_on_exported_call("telescope.builtin.git").files
|
||||||
|
|||||||
Reference in New Issue
Block a user