diff options
| author | Farbod Salamat-Zadeh <12140044+farbodsz@users.noreply.github.com> | 2021-12-06 20:20:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-06 21:20:37 +0100 |
| commit | 6b1579741a0e8f1e0e63d0c6c364b968c157338e (patch) | |
| tree | 297e1c6df710d2fb16e716b76a9c3d482728ed88 /lua/telescope/builtin/git.lua | |
| parent | a20f01353bde239e931c3c461fd3ef2d160a4f9b (diff) | |
fix: git stash entry formatting (#1452)
Diffstat (limited to 'lua/telescope/builtin/git.lua')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index a7a7b43..7bb7bfd 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -72,7 +72,8 @@ git.commits = function(opts) end git.stash = function(opts) - opts.entry_maker = vim.F.if_nil(opts.entry_maker, make_entry.gen_from_git_stash()) + opts.show_branch = vim.F.if_nil(opts.show_branch, true) + opts.entry_maker = vim.F.if_nil(opts.entry_maker, make_entry.gen_from_git_stash(opts)) pickers.new(opts, { prompt_title = "Git Stash", |
