summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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] )) ||