feat: sort branches initially by authordate (#2236)

This commit is contained in:
A. Schueler
2022-11-23 18:26:15 +01:00
committed by GitHub
parent 5e16fbc8ea
commit cea9c75c19

View File

@@ -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 = {