diff options
| author | Anthony Nichols <nichols.anthony@hotmail.com> | 2021-09-16 04:58:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-16 11:58:59 +0200 |
| commit | 5f0ccf1346b99d6d0dab7850184f128e7926cf5f (patch) | |
| tree | becd33d4c11c1b28ebdb631f020ae863b065aac5 /lua/telescope/builtin/git.lua | |
| parent | 2c71ffec076dffab56333c0b66f95f0d38024cd2 (diff) | |
feat: support <pattern> for git-for-each-ref (git_branches) (#1248)
Diffstat (limited to 'lua/telescope/builtin/git.lua')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index a4da679..0302c7d 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -195,7 +195,10 @@ git.branches = function(opts) .. "%(authorname)" .. "%(upstream:lstrip=2)" .. "%(committerdate:format-local:%Y/%m/%d %H:%M:%S)" - local output = utils.get_os_command_output({ "git", "for-each-ref", "--perl", "--format", format }, opts.cwd) + local output = utils.get_os_command_output( + { "git", "for-each-ref", "--perl", "--format", format, opts.pattern }, + opts.cwd + ) local results = {} local widths = { |
