From 7793ebcb71919ed396e1291e975e7fc6483b2512 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 2 Apr 2015 13:28:58 +0000 Subject: 34885: completion: git: Sort "commit object" completions most recent first --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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] )) || -- cgit 1.4.1