about summary refs log tree commit diff
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
parent7929dd8cbaa195311375712ebb12b85296783f58 (diff)
downloadzsh-7793ebcb71919ed396e1291e975e7fc6483b2512.tar.gz
zsh-7793ebcb71919ed396e1291e975e7fc6483b2512.tar.xz
zsh-7793ebcb71919ed396e1291e975e7fc6483b2512.zip
34885: completion: git: Sort "commit object" completions most recent first
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b92eb408..8fb76e88a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-04-13  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 34885: Completion/Unix/Command/_git: completion: git: Sort
+	"commit object" completions most recent first
+
 	* 34885: Completion/Unix/Command/_git: completion: git: Fix
 	another instance of the 34671 bug fixed in 34814
 
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] )) ||