diff options
| author | A. Schueler <schueleraron@lakur.tech> | 2022-11-23 18:26:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-23 18:26:15 +0100 |
| commit | cea9c75c19d172d2c6f089f21656019734a615cf (patch) | |
| tree | d2ebe91cd3a1b056c629ed4586bb7486d706c6c5 /lua/telescope/builtin | |
| parent | 5e16fbc8eac42280ae6e18ca38098a833c5e08ba (diff) | |
feat: sort branches initially by authordate (#2236)
Diffstat (limited to 'lua/telescope/builtin')
| -rw-r--r-- | lua/telescope/builtin/__git.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/telescope/builtin/__git.lua b/lua/telescope/builtin/__git.lua index cc40503..1b9d0fa 100644 --- a/lua/telescope/builtin/__git.lua +++ b/lua/telescope/builtin/__git.lua @@ -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 = { |
