feat: support <pattern> for git-for-each-ref (git_branches) (#1248)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user