feat: sort branches initially by authordate (#2236)
This commit is contained in:
@@ -200,8 +200,10 @@ git.branches = function(opts)
|
|||||||
.. "%(authorname)"
|
.. "%(authorname)"
|
||||||
.. "%(upstream:lstrip=2)"
|
.. "%(upstream:lstrip=2)"
|
||||||
.. "%(committerdate:format-local:%Y/%m/%d %H:%M:%S)"
|
.. "%(committerdate:format-local:%Y/%m/%d %H:%M:%S)"
|
||||||
local output =
|
local output = utils.get_os_command_output(
|
||||||
utils.get_os_command_output({ "git", "for-each-ref", "--perl", "--format", format, opts.pattern }, opts.cwd)
|
{ "git", "for-each-ref", "--perl", "--format", format, "--sort", "-authordate", opts.pattern },
|
||||||
|
opts.cwd
|
||||||
|
)
|
||||||
|
|
||||||
local results = {}
|
local results = {}
|
||||||
local widths = {
|
local widths = {
|
||||||
|
|||||||
Reference in New Issue
Block a user