feat: sort branches initially by authordate (#2236)
This commit is contained in:
@@ -200,8 +200,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.pattern }, opts.cwd)
|
||||
local output = utils.get_os_command_output(
|
||||
{ "git", "for-each-ref", "--perl", "--format", format, "--sort", "-authordate", opts.pattern },
|
||||
opts.cwd
|
||||
)
|
||||
|
||||
local results = {}
|
||||
local widths = {
|
||||
|
||||
Reference in New Issue
Block a user