diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2021-10-24 08:30:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-24 08:30:31 +0200 |
| commit | f31ef362931907bbdd3b46cb880b34493c2d1882 (patch) | |
| tree | 375fbc3e2f32f05fc6ce1db7d32d4b94ea9b6d4c /lua/telescope/builtin/init.lua | |
| parent | 09b0d87b9f99d37c3e4b64be20389f6797898cf5 (diff) | |
fix: opts.git_command for files, commits, bcommits (#1374)
Diffstat (limited to 'lua/telescope/builtin/init.lua')
| -rw-r--r-- | lua/telescope/builtin/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index dd7ac48..614767a 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -146,6 +146,7 @@ builtin.current_buffer_tags = require_on_exported_call("telescope.builtin.files" ---@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 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"} builtin.git_files = require_on_exported_call("telescope.builtin.git").files --- Lists commits for current directory with diff preview @@ -157,6 +158,7 @@ builtin.git_files = require_on_exported_call("telescope.builtin.git").files ---@param opts table: options to pass to the picker ---@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 git_command table: command that will be exectued. {"git","log","--pretty=oneline","--abbrev-commit","--","."} builtin.git_commits = require_on_exported_call("telescope.builtin.git").commits --- Lists commits for current buffer with diff preview @@ -169,6 +171,7 @@ builtin.git_commits = require_on_exported_call("telescope.builtin.git").commits ---@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 current_file string: specify the current file that should be used for bcommits (default: current buffer) +---@field git_command table: command that will be exectued. {"git","log","--pretty=oneline","--abbrev-commit"} builtin.git_bcommits = require_on_exported_call("telescope.builtin.git").bcommits --- List branches for current directory, with output from `git log --oneline` shown in the preview window |
