summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-04-02 13:28:58 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-04-13 20:59:19 +0000
commit7793ebcb71919ed396e1291e975e7fc6483b2512 (patch)
treeebdae2856a070f9bc4c8cecd0e921cc79c0786d1 /Completion/Unix
parent7929dd8cbaa195311375712ebb12b85296783f58 (diff)
downloadzsh-7793ebcb71919ed396e1291e975e7fc6483b2512.tar.gz
zsh-7793ebcb71919ed396e1291e975e7fc6483b2512.tar.xz
zsh-7793ebcb71919ed396e1291e975e7fc6483b2512.zip
34885: completion: git: Sort "commit object" completions most recent first
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_git2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 365482c0b..6a2da17a7 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5639,7 +5639,7 @@ __git_commit_objects () {
   : ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -20 --format='%h:\\\[%h\\\]\ %s')"}}
   __git_command_successful $pipestatus || return 1
 
-  _describe -t commits 'commit object name' commits || _guard '[[:xdigit:]](#c,40)' 'commit object name'
+  _describe -V -t commits 'commit object name' commits || _guard '[[:xdigit:]](#c,40)' 'commit object name'
 }
 
 (( $+functions[__git_recent_commits] )) ||